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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 2225923003: [Interpreter] Collect type feedback for 'new' in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updated mjsunit.status Created 4 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_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-register-allocator.h" 10 #include "src/interpreter/bytecode-register-allocator.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 size_t receiver_arg_count, int feedback_slot) { 183 size_t receiver_arg_count, int feedback_slot) {
184 return Call(callable, receiver_args, receiver_arg_count, feedback_slot, 184 return Call(callable, receiver_args, receiver_arg_count, feedback_slot,
185 TailCallMode::kAllow); 185 TailCallMode::kAllow);
186 } 186 }
187 187
188 // Call the new operator. The accumulator holds the |new_target|. 188 // Call the new operator. The accumulator holds the |new_target|.
189 // The |constructor| is in a register followed by |arg_count| 189 // The |constructor| is in a register followed by |arg_count|
190 // consecutive arguments starting at |first_arg| for the constuctor 190 // consecutive arguments starting at |first_arg| for the constuctor
191 // invocation. 191 // invocation.
192 BytecodeArrayBuilder& New(Register constructor, Register first_arg, 192 BytecodeArrayBuilder& New(Register constructor, Register first_arg,
193 size_t arg_count); 193 size_t arg_count, int feedback_slot);
194 194
195 // Call the runtime function with |function_id|. The first argument should be 195 // Call the runtime function with |function_id|. The first argument should be
196 // in |first_arg| and all subsequent arguments should be in registers 196 // in |first_arg| and all subsequent arguments should be in registers
197 // <first_arg + 1> to <first_arg + arg_count - 1>. 197 // <first_arg + 1> to <first_arg + arg_count - 1>.
198 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id, 198 BytecodeArrayBuilder& CallRuntime(Runtime::FunctionId function_id,
199 Register first_arg, size_t arg_count); 199 Register first_arg, size_t arg_count);
200 200
201 // Call the runtime function with |function_id| that returns a pair of values. 201 // Call the runtime function with |function_id| that returns a pair of values.
202 // The first argument should be in |first_arg| and all subsequent arguments 202 // The first argument should be in |first_arg| and all subsequent arguments
203 // should be in registers <first_arg + 1> to <first_arg + arg_count - 1>. The 203 // should be in registers <first_arg + 1> to <first_arg + arg_count - 1>. The
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 static int const kNoFeedbackSlot = 0; 404 static int const kNoFeedbackSlot = 0;
405 405
406 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 406 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
407 }; 407 };
408 408
409 } // namespace interpreter 409 } // namespace interpreter
410 } // namespace internal 410 } // namespace internal
411 } // namespace v8 411 } // namespace v8
412 412
413 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 413 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698