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

Side by Side Diff: src/compiler/ast-graph-builder.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 case ObjectLiteral::Property::SETTER: { 1637 case ObjectLiteral::Property::SETTER: {
1638 Node* attr = jsgraph()->Constant(DONT_ENUM); 1638 Node* attr = jsgraph()->Constant(DONT_ENUM);
1639 const Operator* op = javascript()->CallRuntime( 1639 const Operator* op = javascript()->CallRuntime(
1640 Runtime::kDefineSetterPropertyUnchecked, 4); 1640 Runtime::kDefineSetterPropertyUnchecked, 4);
1641 NewNode(op, receiver, key, value, attr); 1641 NewNode(op, receiver, key, value, attr);
1642 break; 1642 break;
1643 } 1643 }
1644 } 1644 }
1645 } 1645 }
1646 1646
1647 // Set both the prototype and constructor to have fast properties, and also 1647 // Set both the prototype and constructor to have fast properties.
1648 // freeze them in strong mode.
1649 prototype = environment()->Pop(); 1648 prototype = environment()->Pop();
1650 literal = environment()->Pop(); 1649 literal = environment()->Pop();
1651 const Operator* op = 1650 const Operator* op =
1652 javascript()->CallRuntime(Runtime::kFinalizeClassDefinition); 1651 javascript()->CallRuntime(Runtime::kFinalizeClassDefinition);
1653 literal = NewNode(op, literal, prototype); 1652 literal = NewNode(op, literal, prototype);
1654 1653
1655 // Assign to class variable. 1654 // Assign to class variable.
1656 if (expr->class_variable_proxy() != nullptr) { 1655 if (expr->class_variable_proxy() != nullptr) {
1657 Variable* var = expr->class_variable_proxy()->var(); 1656 Variable* var = expr->class_variable_proxy()->var();
1658 FrameStateBeforeAndAfter states(this, BailoutId::None()); 1657 FrameStateBeforeAndAfter states(this, BailoutId::None());
(...skipping 2680 matching lines...) Expand 10 before | Expand all | Expand 10 after
4339 // Phi does not exist yet, introduce one. 4338 // Phi does not exist yet, introduce one.
4340 value = NewPhi(inputs, value, control); 4339 value = NewPhi(inputs, value, control);
4341 value->ReplaceInput(inputs - 1, other); 4340 value->ReplaceInput(inputs - 1, other);
4342 } 4341 }
4343 return value; 4342 return value;
4344 } 4343 }
4345 4344
4346 } // namespace compiler 4345 } // namespace compiler
4347 } // namespace internal 4346 } // namespace internal
4348 } // namespace v8 4347 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/js-inlining.cc » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698