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

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

Issue 1666943003: [interpreter] Support for ES6 class literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporate mstarzinger's comments on patch set 1. 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 #include "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace interpreter { 9 namespace interpreter {
10 10
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 319
320 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadBooleanConstant(bool value) { 320 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadBooleanConstant(bool value) {
321 if (value) { 321 if (value) {
322 LoadTrue(); 322 LoadTrue();
323 } else { 323 } else {
324 LoadFalse(); 324 LoadFalse();
325 } 325 }
326 return *this; 326 return *this;
327 } 327 }
328 328
329 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadPrototypeOrInitialMap() {
330 Output(Bytecode::kLdaInitialMap);
331 return *this;
332 }
329 333
330 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadAccumulatorWithRegister( 334 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadAccumulatorWithRegister(
331 Register reg) { 335 Register reg) {
332 if (!IsRegisterInAccumulator(reg)) { 336 if (!IsRegisterInAccumulator(reg)) {
333 Output(Bytecode::kLdar, reg.ToRawOperand()); 337 Output(Bytecode::kLdar, reg.ToRawOperand());
334 } 338 }
335 return *this; 339 return *this;
336 } 340 }
337 341
338 342
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 } 1683 }
1680 1684
1681 // static 1685 // static
1682 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { 1686 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) {
1683 return value.is_short_operand(); 1687 return value.is_short_operand();
1684 } 1688 }
1685 1689
1686 } // namespace interpreter 1690 } // namespace interpreter
1687 } // namespace internal 1691 } // namespace internal
1688 } // namespace v8 1692 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698