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 1524803003: [Interpreter] Add support for Load / Store to Lookup slots. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@init_eval_impl
Patch Set: Fixed nits. Created 5 years 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 MachineType::AnyTagged(), RegisterFileRawPointer(), 360 MachineType::AnyTagged(), RegisterFileRawPointer(),
361 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer)); 361 IntPtrConstant(InterpreterFrameConstants::kFunctionFromRegisterPointer));
362 Node* shared_info = 362 Node* shared_info =
363 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset); 363 LoadObjectField(function, JSFunction::kSharedFunctionInfoOffset);
364 Node* vector = 364 Node* vector =
365 LoadObjectField(shared_info, SharedFunctionInfo::kFeedbackVectorOffset); 365 LoadObjectField(shared_info, SharedFunctionInfo::kFeedbackVectorOffset);
366 return vector; 366 return vector;
367 } 367 }
368 368
369 369
370 Node* InterpreterAssembler::Projection(int index, Node* node) {
371 return raw_assembler_->Projection(index, node);
372 }
373
374
370 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor, 375 Node* InterpreterAssembler::CallConstruct(Node* new_target, Node* constructor,
371 Node* first_arg, Node* arg_count) { 376 Node* first_arg, Node* arg_count) {
372 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); 377 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate());
373 CallDescriptor* descriptor = Linkage::GetStubCallDescriptor( 378 CallDescriptor* descriptor = Linkage::GetStubCallDescriptor(
374 isolate(), zone(), callable.descriptor(), 0, CallDescriptor::kNoFlags); 379 isolate(), zone(), callable.descriptor(), 0, CallDescriptor::kNoFlags);
375 380
376 Node* code_target = HeapConstant(callable.code()); 381 Node* code_target = HeapConstant(callable.code());
377 382
378 Node** args = zone()->NewArray<Node*>(5); 383 Node** args = zone()->NewArray<Node*>(5);
379 args[0] = arg_count; 384 args[0] = arg_count;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 return raw_assembler_->call_descriptor(); 641 return raw_assembler_->call_descriptor();
637 } 642 }
638 643
639 644
640 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); } 645 Zone* InterpreterAssembler::zone() { return raw_assembler_->zone(); }
641 646
642 647
643 } // namespace compiler 648 } // namespace compiler
644 } // namespace internal 649 } // namespace internal
645 } // namespace v8 650 } // 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