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

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

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: rebase 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
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/interpreter/bytecode-array-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 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 int feedback_slot); 252 int feedback_slot);
253 253
254 // Count Operators (value stored in accumulator). 254 // Count Operators (value stored in accumulator).
255 // Type feedback will be recorded in the |feedback_slot| 255 // Type feedback will be recorded in the |feedback_slot|
256 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot); 256 BytecodeArrayBuilder& CountOperation(Token::Value op, int feedback_slot);
257 257
258 // Unary Operators. 258 // Unary Operators.
259 BytecodeArrayBuilder& LogicalNot(); 259 BytecodeArrayBuilder& LogicalNot();
260 BytecodeArrayBuilder& TypeOf(); 260 BytecodeArrayBuilder& TypeOf();
261 261
262 // Expects a heap object in the accumulator. Returns its super constructor in
263 // the register |out| if it passes the IsConstructor test. Otherwise, it
264 // throws a TypeError exception.
265 BytecodeArrayBuilder& GetSuperConstructor(Register out);
266
262 // Deletes property from an object. This expects that accumulator contains 267 // Deletes property from an object. This expects that accumulator contains
263 // the key to be deleted and the register contains a reference to the object. 268 // the key to be deleted and the register contains a reference to the object.
264 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode); 269 BytecodeArrayBuilder& Delete(Register object, LanguageMode language_mode);
265 270
266 // Tests. 271 // Tests.
267 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg, 272 BytecodeArrayBuilder& CompareOperation(Token::Value op, Register reg,
268 int feedback_slot = kNoFeedbackSlot); 273 int feedback_slot = kNoFeedbackSlot);
269 274
270 // Converts accumulator and stores result in register |out|. 275 // Converts accumulator and stores result in register |out|.
271 BytecodeArrayBuilder& ConvertAccumulatorToObject(Register out); 276 BytecodeArrayBuilder& ConvertAccumulatorToObject(Register out);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 static int const kNoFeedbackSlot = 0; 437 static int const kNoFeedbackSlot = 0;
433 438
434 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 439 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
435 }; 440 };
436 441
437 } // namespace interpreter 442 } // namespace interpreter
438 } // namespace internal 443 } // namespace internal
439 } // namespace v8 444 } // namespace v8
440 445
441 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 446 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698