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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 1678103002: [interpreter] Remove special "prototype" load in class literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-register-allocator.h" 9 #include "src/interpreter/bytecode-register-allocator.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Constant loads to accumulator. 84 // Constant loads to accumulator.
85 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); 85 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value);
86 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); 86 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object);
87 BytecodeArrayBuilder& LoadUndefined(); 87 BytecodeArrayBuilder& LoadUndefined();
88 BytecodeArrayBuilder& LoadNull(); 88 BytecodeArrayBuilder& LoadNull();
89 BytecodeArrayBuilder& LoadTheHole(); 89 BytecodeArrayBuilder& LoadTheHole();
90 BytecodeArrayBuilder& LoadTrue(); 90 BytecodeArrayBuilder& LoadTrue();
91 BytecodeArrayBuilder& LoadFalse(); 91 BytecodeArrayBuilder& LoadFalse();
92 BytecodeArrayBuilder& LoadBooleanConstant(bool value); 92 BytecodeArrayBuilder& LoadBooleanConstant(bool value);
93 93
94 // Load object prototype (or initial map).
95 BytecodeArrayBuilder& LoadPrototypeOrInitialMap();
96
97 // Global loads to the accumulator and stores from the accumulator. 94 // Global loads to the accumulator and stores from the accumulator.
98 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, 95 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot,
99 LanguageMode language_mode, 96 LanguageMode language_mode,
100 TypeofMode typeof_mode); 97 TypeofMode typeof_mode);
101 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, 98 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name,
102 int feedback_slot, 99 int feedback_slot,
103 LanguageMode language_mode); 100 LanguageMode language_mode);
104 101
105 // Load the object at |slot_index| in |context| into the accumulator. 102 // Load the object at |slot_index| in |context| into the accumulator.
106 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index); 103 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index);
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 size_t offset_; 411 size_t offset_;
415 412
416 friend class BytecodeArrayBuilder; 413 friend class BytecodeArrayBuilder;
417 }; 414 };
418 415
419 } // namespace interpreter 416 } // namespace interpreter
420 } // namespace internal 417 } // namespace internal
421 } // namespace v8 418 } // namespace v8
422 419
423 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 420 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698