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

Side by Side Diff: src/interpreter/bytecode-generator.cc

Issue 2315733003: Class fields, part 1 (parsing and infrastructure) (Closed)
Patch Set: whitespace Created 4 years, 3 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
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/objects.h » ('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 #include "src/interpreter/bytecode-generator.h" 5 #include "src/interpreter/bytecode-generator.h"
6 6
7 #include "src/ast/compile-time-value.h" 7 #include "src/ast/compile-time-value.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-info.h" 10 #include "src/compilation-info.h"
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 case ClassLiteral::Property::GETTER: { 1586 case ClassLiteral::Property::GETTER: {
1587 builder()->CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 1587 builder()->CallRuntime(Runtime::kDefineGetterPropertyUnchecked,
1588 receiver, 4); 1588 receiver, 4);
1589 break; 1589 break;
1590 } 1590 }
1591 case ClassLiteral::Property::SETTER: { 1591 case ClassLiteral::Property::SETTER: {
1592 builder()->CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 1592 builder()->CallRuntime(Runtime::kDefineSetterPropertyUnchecked,
1593 receiver, 4); 1593 receiver, 4);
1594 break; 1594 break;
1595 } 1595 }
1596 case ClassLiteral::Property::FIELD: {
1597 UNREACHABLE();
1598 break;
1599 }
1596 } 1600 }
1597 } 1601 }
1598 } 1602 }
1599 1603
1600 void BytecodeGenerator::VisitClassLiteralStaticPrototypeWithComputedName( 1604 void BytecodeGenerator::VisitClassLiteralStaticPrototypeWithComputedName(
1601 Register key) { 1605 Register key) {
1602 BytecodeLabel done; 1606 BytecodeLabel done;
1603 builder() 1607 builder()
1604 ->LoadLiteral(prototype_string()) 1608 ->LoadLiteral(prototype_string())
1605 .CompareOperation(Token::Value::EQ_STRICT, key) 1609 .CompareOperation(Token::Value::EQ_STRICT, key)
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
3387 return execution_context()->scope()->language_mode(); 3391 return execution_context()->scope()->language_mode();
3388 } 3392 }
3389 3393
3390 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const { 3394 int BytecodeGenerator::feedback_index(FeedbackVectorSlot slot) const {
3391 return TypeFeedbackVector::GetIndex(slot); 3395 return TypeFeedbackVector::GetIndex(slot);
3392 } 3396 }
3393 3397
3394 } // namespace interpreter 3398 } // namespace interpreter
3395 } // namespace internal 3399 } // namespace internal
3396 } // namespace v8 3400 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698