[turbofan] Remove obsolete BuildLoadBuiltinsObject.
authoryangguo <yangguo@chromium.org>
Thu, 27 Aug 2015 14:45:10 +0000 (07:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 27 Aug 2015 14:45:24 +0000 (14:45 +0000)
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/1305163008

Cr-Commit-Position: refs/heads/master@{#30417}

src/compiler/ast-graph-builder.cc
src/compiler/ast-graph-builder.h

index 12e121b5069474590509ccf22eea2773f1715fbd..22d9e7ab5efd9850e233f17f79bb4e007f67edf9 100644 (file)
@@ -3737,14 +3737,6 @@ Node* AstGraphBuilder::BuildLoadImmutableObjectField(Node* object, int offset) {
 }
 
 
-Node* AstGraphBuilder::BuildLoadBuiltinsObject() {
-  Node* global = BuildLoadGlobalObject();
-  Node* builtins =
-      BuildLoadObjectField(global, JSGlobalObject::kBuiltinsOffset);
-  return builtins;
-}
-
-
 Node* AstGraphBuilder::BuildLoadGlobalObject() {
   const Operator* load_op =
       javascript()->LoadContext(0, Context::GLOBAL_OBJECT_INDEX, true);
index a5861c8046012cc6d067da0bf6839e50d56aef5b..6c8e656166c3251ea3d6978a30a6f45f6fa0899d 100644 (file)
@@ -315,7 +315,6 @@ class AstGraphBuilder : public AstVisitor {
                          TypeFeedbackId id, int slot_index);
 
   // Builders for accessing the function context.
-  Node* BuildLoadBuiltinsObject();
   Node* BuildLoadGlobalObject();
   Node* BuildLoadNativeContextField(int index);
   Node* BuildLoadGlobalProxy();