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

Side by Side Diff: src/compiler/interpreter-assembler.cc

Issue 1361113002: [Interpreter] Add support for loading globals in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments and fix ASAN Created 5 years, 2 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/compiler/interpreter-assembler.h ('k') | src/interpreter/bytecode-array-builder.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/interpreter-assembler.h" 5 #include "src/compiler/interpreter-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 args[1] = arg2; 309 args[1] = arg2;
310 args[2] = arg3; 310 args[2] = arg3;
311 args[3] = arg4; 311 args[3] = arg4;
312 args[4] = arg5; 312 args[4] = arg5;
313 args[5] = ContextTaggedPointer(); 313 args[5] = ContextTaggedPointer();
314 return CallIC(descriptor, target, args); 314 return CallIC(descriptor, target, args);
315 } 315 }
316 316
317 317
318 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id, 318 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id,
319 Node* arg1) {
320 return raw_assembler_->CallRuntime1(function_id, arg1,
321 ContextTaggedPointer());
322 }
323
324
325 Node* InterpreterAssembler::CallRuntime(Runtime::FunctionId function_id,
319 Node* arg1, Node* arg2) { 326 Node* arg1, Node* arg2) {
320 return raw_assembler_->CallRuntime2(function_id, arg1, arg2, 327 return raw_assembler_->CallRuntime2(function_id, arg1, arg2,
321 ContextTaggedPointer()); 328 ContextTaggedPointer());
322 } 329 }
323 330
324 331
325 void InterpreterAssembler::Return() { 332 void InterpreterAssembler::Return() {
326 Node* exit_trampoline_code_object = 333 Node* exit_trampoline_code_object =
327 HeapConstant(isolate()->builtins()->InterpreterExitTrampoline()); 334 HeapConstant(isolate()->builtins()->InterpreterExitTrampoline());
328 // If the order of the parameters you need to change the call signature below. 335 // If the order of the parameters you need to change the call signature below.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 return raw_assembler_->schedule(); 419 return raw_assembler_->schedule();
413 } 420 }
414 421
415 422
416 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } 423 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); }
417 424
418 425
419 } // namespace interpreter 426 } // namespace interpreter
420 } // namespace internal 427 } // namespace internal
421 } // namespace v8 428 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/interpreter-assembler.h ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698