Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: src/compiler/ast-graph-builder.h

Issue 1224793002: Loads and stores to global vars are now made via property cell shortcuts installed into parent scri… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/liveness-analyzer.h" 10 #include "src/compiler/liveness-analyzer.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 Node* BuildKeyedSuperStore(Node* receiver, Node* home_object, Node* key, 300 Node* BuildKeyedSuperStore(Node* receiver, Node* home_object, Node* key,
301 Node* value, TypeFeedbackId id); 301 Node* value, TypeFeedbackId id);
302 Node* BuildNamedSuperStore(Node* receiver, Node* home_object, 302 Node* BuildNamedSuperStore(Node* receiver, Node* home_object,
303 Handle<Name> name, Node* value, TypeFeedbackId id); 303 Handle<Name> name, Node* value, TypeFeedbackId id);
304 Node* BuildNamedSuperLoad(Node* receiver, Node* home_object, 304 Node* BuildNamedSuperLoad(Node* receiver, Node* home_object,
305 Handle<Name> name, const VectorSlotPair& feedback); 305 Handle<Name> name, const VectorSlotPair& feedback);
306 Node* BuildKeyedSuperLoad(Node* receiver, Node* home_object, Node* key, 306 Node* BuildKeyedSuperLoad(Node* receiver, Node* home_object, Node* key,
307 const VectorSlotPair& feedback); 307 const VectorSlotPair& feedback);
308 308
309 // Builders for global variable loads and stores. 309 // Builders for global variable loads and stores.
310 Node* BuildGlobalLoad(Node* global, Handle<Name> name, 310 Node* BuildGlobalLoad(Node* script_context, Node* global, Handle<Name> name,
311 const VectorSlotPair& feedback, ContextualMode mode); 311 const VectorSlotPair& feedback, ContextualMode mode,
312 Node* BuildGlobalStore(Node* global, Handle<Name> name, Node* value, 312 int slot_index);
313 const VectorSlotPair& feedback, TypeFeedbackId id); 313 Node* BuildGlobalStore(Node* script_context, Node* global, Handle<Name> name,
314 Node* value, const VectorSlotPair& feedback,
315 TypeFeedbackId id, int slot_index);
314 316
315 // Builders for accessing the function context. 317 // Builders for accessing the function context.
316 Node* BuildLoadBuiltinsObject(); 318 Node* BuildLoadBuiltinsObject();
317 Node* BuildLoadGlobalObject(); 319 Node* BuildLoadGlobalObject();
318 Node* BuildLoadGlobalProxy(); 320 Node* BuildLoadGlobalProxy();
319 Node* BuildLoadFeedbackVector(); 321 Node* BuildLoadFeedbackVector();
320 322
321 // Builder for accessing a (potentially immutable) object field. 323 // Builder for accessing a (potentially immutable) object field.
322 Node* BuildLoadObjectField(Node* object, int offset); 324 Node* BuildLoadObjectField(Node* object, int offset);
323 Node* BuildLoadImmutableObjectField(Node* object, int offset); 325 Node* BuildLoadImmutableObjectField(Node* object, int offset);
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 555
554 // Prepare environment to be used as loop header. 556 // Prepare environment to be used as loop header.
555 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 557 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
556 }; 558 };
557 559
558 } // namespace compiler 560 } // namespace compiler
559 } // namespace internal 561 } // namespace internal
560 } // namespace v8 562 } // namespace v8
561 563
562 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 564 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698