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

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

Issue 2423053002: Install the 'name' property in classes at runtime (Closed)
Patch Set: Move computed property names check to parser and runtime function Created 4 years 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/base/compiler-specific.h" 9 #include "src/base/compiler-specific.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Constant loads to accumulator. 75 // Constant loads to accumulator.
76 BytecodeArrayBuilder& LoadConstantPoolEntry(size_t entry); 76 BytecodeArrayBuilder& LoadConstantPoolEntry(size_t entry);
77 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value); 77 BytecodeArrayBuilder& LoadLiteral(v8::internal::Smi* value);
78 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object); 78 BytecodeArrayBuilder& LoadLiteral(Handle<Object> object);
79 BytecodeArrayBuilder& LoadUndefined(); 79 BytecodeArrayBuilder& LoadUndefined();
80 BytecodeArrayBuilder& LoadNull(); 80 BytecodeArrayBuilder& LoadNull();
81 BytecodeArrayBuilder& LoadTheHole(); 81 BytecodeArrayBuilder& LoadTheHole();
82 BytecodeArrayBuilder& LoadTrue(); 82 BytecodeArrayBuilder& LoadTrue();
83 BytecodeArrayBuilder& LoadFalse(); 83 BytecodeArrayBuilder& LoadFalse();
84 BytecodeArrayBuilder& LoadBoolean(bool is_true) {
Henrique Ferreiro 2016/11/29 11:01:26 I have added this helper.
rmcilroy 2016/11/29 13:05:23 Acknowledged.
85 return is_true ? LoadTrue() : LoadFalse();
86 }
84 87
85 // Global loads to the accumulator and stores from the accumulator. 88 // Global loads to the accumulator and stores from the accumulator.
86 BytecodeArrayBuilder& LoadGlobal(int feedback_slot, TypeofMode typeof_mode); 89 BytecodeArrayBuilder& LoadGlobal(int feedback_slot, TypeofMode typeof_mode);
87 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, 90 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name,
88 int feedback_slot, 91 int feedback_slot,
89 LanguageMode language_mode); 92 LanguageMode language_mode);
90 93
91 // Load the object at |slot_index| at |depth| in the context chain starting 94 // Load the object at |slot_index| at |depth| in the context chain starting
92 // with |context| into the accumulator. 95 // with |context| into the accumulator.
93 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index, 96 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index,
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 static int const kNoFeedbackSlot = 0; 414 static int const kNoFeedbackSlot = 0;
412 415
413 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 416 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
414 }; 417 };
415 418
416 } // namespace interpreter 419 } // namespace interpreter
417 } // namespace internal 420 } // namespace internal
418 } // namespace v8 421 } // namespace v8
419 422
420 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 423 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698