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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1773653002: [strong] Remove all remainders of strong mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 __ Move(LoadDescriptor::ReceiverRegister(), result_register()); 1502 __ Move(LoadDescriptor::ReceiverRegister(), result_register());
1503 __ LoadRoot(LoadDescriptor::NameRegister(), 1503 __ LoadRoot(LoadDescriptor::NameRegister(),
1504 Heap::kprototype_stringRootIndex); 1504 Heap::kprototype_stringRootIndex);
1505 __ Move(LoadDescriptor::SlotRegister(), SmiFromSlot(lit->PrototypeSlot())); 1505 __ Move(LoadDescriptor::SlotRegister(), SmiFromSlot(lit->PrototypeSlot()));
1506 CallLoadIC(NOT_INSIDE_TYPEOF); 1506 CallLoadIC(NOT_INSIDE_TYPEOF);
1507 PrepareForBailoutForId(lit->PrototypeId(), TOS_REG); 1507 PrepareForBailoutForId(lit->PrototypeId(), TOS_REG);
1508 PushOperand(result_register()); 1508 PushOperand(result_register());
1509 1509
1510 EmitClassDefineProperties(lit); 1510 EmitClassDefineProperties(lit);
1511 1511
1512 // Set both the prototype and constructor to have fast properties, and also 1512 // Set both the prototype and constructor to have fast properties.
1513 // freeze them in strong mode.
1514 CallRuntimeWithOperands(Runtime::kFinalizeClassDefinition); 1513 CallRuntimeWithOperands(Runtime::kFinalizeClassDefinition);
1515 1514
1516 if (lit->class_variable_proxy() != nullptr) { 1515 if (lit->class_variable_proxy() != nullptr) {
1517 EmitVariableAssignment(lit->class_variable_proxy()->var(), Token::INIT, 1516 EmitVariableAssignment(lit->class_variable_proxy()->var(), Token::INIT,
1518 lit->ProxySlot()); 1517 lit->ProxySlot());
1519 } 1518 }
1520 } 1519 }
1521 1520
1522 context()->Plug(result_register()); 1521 context()->Plug(result_register());
1523 } 1522 }
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1928 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1930 var->initializer_position() >= proxy->position(); 1929 var->initializer_position() >= proxy->position();
1931 } 1930 }
1932 1931
1933 1932
1934 #undef __ 1933 #undef __
1935 1934
1936 1935
1937 } // namespace internal 1936 } // namespace internal
1938 } // namespace v8 1937 } // namespace v8
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/globals.h » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698