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

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

Issue 2179303005: [Interpreter] Move SharedFunctionInfo creation to finalization step. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.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/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-dead-code-optimizer.h" 10 #include "src/interpreter/bytecode-dead-code-optimizer.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreKeyedProperty( 323 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreKeyedProperty(
324 Register object, Register key, int feedback_slot, 324 Register object, Register key, int feedback_slot,
325 LanguageMode language_mode) { 325 LanguageMode language_mode) {
326 Bytecode bytecode = BytecodeForStoreKeyedProperty(language_mode); 326 Bytecode bytecode = BytecodeForStoreKeyedProperty(language_mode);
327 Output(bytecode, RegisterOperand(object), RegisterOperand(key), 327 Output(bytecode, RegisterOperand(object), RegisterOperand(key),
328 UnsignedOperand(feedback_slot)); 328 UnsignedOperand(feedback_slot));
329 return *this; 329 return *this;
330 } 330 }
331 331
332 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure( 332 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateClosure(size_t entry,
333 Handle<SharedFunctionInfo> shared_info, int flags) { 333 int flags) {
334 size_t entry = GetConstantPoolEntry(shared_info);
335 Output(Bytecode::kCreateClosure, UnsignedOperand(entry), 334 Output(Bytecode::kCreateClosure, UnsignedOperand(entry),
336 UnsignedOperand(flags)); 335 UnsignedOperand(flags));
337 return *this; 336 return *this;
338 } 337 }
339 338
340 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments( 339 BytecodeArrayBuilder& BytecodeArrayBuilder::CreateArguments(
341 CreateArgumentsType type) { 340 CreateArgumentsType type) {
342 // TODO(rmcilroy): Consider passing the type as a bytecode operand rather 341 // TODO(rmcilroy): Consider passing the type as a bytecode operand rather
343 // than having two different bytecodes once we have better support for 342 // than having two different bytecodes once we have better support for
344 // branches in the InterpreterAssembler. 343 // branches in the InterpreterAssembler.
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 return Bytecode::kTailCall; 948 return Bytecode::kTailCall;
950 default: 949 default:
951 UNREACHABLE(); 950 UNREACHABLE();
952 } 951 }
953 return Bytecode::kIllegal; 952 return Bytecode::kIllegal;
954 } 953 }
955 954
956 } // namespace interpreter 955 } // namespace interpreter
957 } // namespace internal 956 } // namespace internal
958 } // namespace v8 957 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698