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

Side by Side Diff: src/compiler/bytecode-graph-builder.cc

Issue 1323463005: [Interpreter] Add support for JS calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MIPS port contributed by akos.palfi@imgtec.com Created 5 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/code-factory.cc ('k') | src/compiler/interpreter-assembler.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/compiler/bytecode-graph-builder.h" 5 #include "src/compiler/bytecode-graph-builder.h"
6 6
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "src/interpreter/bytecode-array-iterator.h" 9 #include "src/interpreter/bytecode-array-iterator.h"
10 10
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 UNIMPLEMENTED(); 266 UNIMPLEMENTED();
267 } 267 }
268 268
269 269
270 void BytecodeGraphBuilder::VisitKeyedStoreIC( 270 void BytecodeGraphBuilder::VisitKeyedStoreIC(
271 const interpreter::BytecodeArrayIterator& iterator) { 271 const interpreter::BytecodeArrayIterator& iterator) {
272 UNIMPLEMENTED(); 272 UNIMPLEMENTED();
273 } 273 }
274 274
275 275
276 void BytecodeGraphBuilder::VisitCall(
277 const interpreter::BytecodeArrayIterator& iterator) {
278 UNIMPLEMENTED();
279 }
280
281
276 void BytecodeGraphBuilder::BuildBinaryOp( 282 void BytecodeGraphBuilder::BuildBinaryOp(
277 const Operator* js_op, const interpreter::BytecodeArrayIterator& iterator) { 283 const Operator* js_op, const interpreter::BytecodeArrayIterator& iterator) {
278 Node* left = environment()->LookupRegister(iterator.GetRegisterOperand(0)); 284 Node* left = environment()->LookupRegister(iterator.GetRegisterOperand(0));
279 Node* right = environment()->LookupAccumulator(); 285 Node* right = environment()->LookupAccumulator();
280 Node* node = NewNode(js_op, left, right); 286 Node* node = NewNode(js_op, left, right);
281 287
282 // TODO(oth): Real frame state and environment check pointing. 288 // TODO(oth): Real frame state and environment check pointing.
283 int frame_state_count = 289 int frame_state_count =
284 OperatorProperties::GetFrameStateInputCount(node->op()); 290 OperatorProperties::GetFrameStateInputCount(node->op());
285 for (int i = 0; i < frame_state_count; i++) { 291 for (int i = 0; i < frame_state_count; i++) {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 430
425 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { 431 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) {
426 if (environment()->IsMarkedAsUnreachable()) return; 432 if (environment()->IsMarkedAsUnreachable()) return;
427 environment()->MarkAsUnreachable(); 433 environment()->MarkAsUnreachable();
428 exit_controls_.push_back(exit); 434 exit_controls_.push_back(exit);
429 } 435 }
430 436
431 } // namespace compiler 437 } // namespace compiler
432 } // namespace internal 438 } // namespace internal
433 } // namespace v8 439 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/interpreter-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698