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

Side by Side Diff: src/interpreter/interpreter.cc

Issue 1894953004: Add HasProperty code stub that tries simple lookups or jumps to runtime otherwise. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 7 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/interface-descriptors.cc ('k') | src/mips/interface-descriptors-mips.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 #include "src/interpreter/interpreter.h" 5 #include "src/interpreter/interpreter.h"
6 6
7 #include <fstream> 7 #include <fstream>
8 8
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) { 1130 void Interpreter::DoTestGreaterThanOrEqual(InterpreterAssembler* assembler) {
1131 DoBinaryOp(CodeFactory::GreaterThanOrEqual(isolate_), assembler); 1131 DoBinaryOp(CodeFactory::GreaterThanOrEqual(isolate_), assembler);
1132 } 1132 }
1133 1133
1134 1134
1135 // TestIn <src> 1135 // TestIn <src>
1136 // 1136 //
1137 // Test if the object referenced by the register operand is a property of the 1137 // Test if the object referenced by the register operand is a property of the
1138 // object referenced by the accumulator. 1138 // object referenced by the accumulator.
1139 void Interpreter::DoTestIn(InterpreterAssembler* assembler) { 1139 void Interpreter::DoTestIn(InterpreterAssembler* assembler) {
1140 DoBinaryOp(Runtime::kHasProperty, assembler); 1140 DoBinaryOp(CodeFactory::HasProperty(isolate_), assembler);
1141 } 1141 }
1142 1142
1143 1143
1144 // TestInstanceOf <src> 1144 // TestInstanceOf <src>
1145 // 1145 //
1146 // Test if the object referenced by the <src> register is an an instance of type 1146 // Test if the object referenced by the <src> register is an an instance of type
1147 // referenced by the accumulator. 1147 // referenced by the accumulator.
1148 void Interpreter::DoTestInstanceOf(InterpreterAssembler* assembler) { 1148 void Interpreter::DoTestInstanceOf(InterpreterAssembler* assembler) {
1149 DoBinaryOp(Runtime::kInstanceOf, assembler); 1149 DoBinaryOp(Runtime::kInstanceOf, assembler);
1150 } 1150 }
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
1767 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, 1767 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset,
1768 __ SmiTag(new_state)); 1768 __ SmiTag(new_state));
1769 __ SetAccumulator(old_state); 1769 __ SetAccumulator(old_state);
1770 1770
1771 __ Dispatch(); 1771 __ Dispatch();
1772 } 1772 }
1773 1773
1774 } // namespace interpreter 1774 } // namespace interpreter
1775 } // namespace internal 1775 } // namespace internal
1776 } // namespace v8 1776 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.cc ('k') | src/mips/interface-descriptors-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698