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

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

Issue 2238853002: [Interpreter] Remove LdaConstant+ToName peephole optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@offheap_internalize
Patch Set: Address comments 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 | « no previous file | src/interpreter/bytecode-peephole-optimizer.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 25 matching lines...) Expand all
36 pipeline_(&bytecode_array_writer_) { 36 pipeline_(&bytecode_array_writer_) {
37 DCHECK_GE(parameter_count_, 0); 37 DCHECK_GE(parameter_count_, 0);
38 DCHECK_GE(context_register_count_, 0); 38 DCHECK_GE(context_register_count_, 0);
39 DCHECK_GE(local_register_count_, 0); 39 DCHECK_GE(local_register_count_, 0);
40 40
41 if (FLAG_ignition_deadcode) { 41 if (FLAG_ignition_deadcode) {
42 pipeline_ = new (zone) BytecodeDeadCodeOptimizer(pipeline_); 42 pipeline_ = new (zone) BytecodeDeadCodeOptimizer(pipeline_);
43 } 43 }
44 44
45 if (FLAG_ignition_peephole) { 45 if (FLAG_ignition_peephole) {
46 pipeline_ = new (zone) 46 pipeline_ = new (zone) BytecodePeepholeOptimizer(pipeline_);
47 BytecodePeepholeOptimizer(&constant_array_builder_, pipeline_);
48 } 47 }
49 48
50 if (FLAG_ignition_reo) { 49 if (FLAG_ignition_reo) {
51 pipeline_ = new (zone) BytecodeRegisterOptimizer( 50 pipeline_ = new (zone) BytecodeRegisterOptimizer(
52 zone, &temporary_allocator_, parameter_count, pipeline_); 51 zone, &temporary_allocator_, parameter_count, pipeline_);
53 } 52 }
54 53
55 return_position_ = 54 return_position_ =
56 literal ? std::max(literal->start_position(), literal->end_position() - 1) 55 literal ? std::max(literal->start_position(), literal->end_position() - 1)
57 : kNoSourcePosition; 56 : kNoSourcePosition;
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 return Bytecode::kTailCall; 964 return Bytecode::kTailCall;
966 default: 965 default:
967 UNREACHABLE(); 966 UNREACHABLE();
968 } 967 }
969 return Bytecode::kIllegal; 968 return Bytecode::kIllegal;
970 } 969 }
971 970
972 } // namespace interpreter 971 } // namespace interpreter
973 } // namespace internal 972 } // namespace internal
974 } // namespace v8 973 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-peephole-optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698