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

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

Issue 1333843002: [runtime] Move binary operator fallbacks into the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: No need for frame states in bytecode handlers. Add test case. 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
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 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_
6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/allocation.h" 10 #include "src/allocation.h"
11 #include "src/base/smart-pointers.h" 11 #include "src/base/smart-pointers.h"
12 #include "src/builtins.h" 12 #include "src/builtins.h"
13 #include "src/frames.h" 13 #include "src/frames.h"
14 #include "src/interpreter/bytecodes.h" 14 #include "src/interpreter/bytecodes.h"
15 #include "src/runtime/runtime.h"
15 16
16 namespace v8 { 17 namespace v8 {
17 namespace internal { 18 namespace internal {
18 19
19 class CallInterfaceDescriptor; 20 class CallInterfaceDescriptor;
20 class Isolate; 21 class Isolate;
21 class Zone; 22 class Zone;
22 23
23 namespace compiler { 24 namespace compiler {
24 25
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 // Load the TypeFeedbackVector for the current function. 81 // Load the TypeFeedbackVector for the current function.
81 Node* LoadTypeFeedbackVector(); 82 Node* LoadTypeFeedbackVector();
82 83
83 // Call an IC code stub. 84 // Call an IC code stub.
84 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, 85 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1,
85 Node* arg2, Node* arg3, Node* arg4); 86 Node* arg2, Node* arg3, Node* arg4);
86 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, 87 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1,
87 Node* arg2, Node* arg3, Node* arg4, Node* arg5); 88 Node* arg2, Node* arg3, Node* arg4, Node* arg5);
88 89
89 // Call JS builtin. 90 // Call runtime function.
90 Node* CallJSBuiltin(int context_index, Node* receiver); 91 Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2);
91 Node* CallJSBuiltin(int context_index, Node* receiver, Node* arg1);
92 92
93 // Returns from the function. 93 // Returns from the function.
94 void Return(); 94 void Return();
95 95
96 // Dispatch to the bytecode. 96 // Dispatch to the bytecode.
97 void Dispatch(); 97 void Dispatch();
98 98
99 protected: 99 protected:
100 // Close the graph. 100 // Close the graph.
101 void End(); 101 void End();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool code_generated_; 146 bool code_generated_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 148 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
149 }; 149 };
150 150
151 } // namespace interpreter 151 } // namespace interpreter
152 } // namespace internal 152 } // namespace internal
153 } // namespace v8 153 } // namespace v8
154 154
155 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 155 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/compiler/interpreter-assembler.cc » ('j') | src/compiler/linkage.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698