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

Side by Side Diff: src/compiler/raw-machine-assembler.cc

Issue 2638393002: [builtins] Add String.prototype.indexOf fast path in TF (Closed)
Patch Set: update comments Created 3 years, 11 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/raw-machine-assembler.h" 5 #include "src/compiler/raw-machine-assembler.h"
6 6
7 #include "src/compiler/node-properties.h" 7 #include "src/compiler/node-properties.h"
8 #include "src/compiler/pipeline.h" 8 #include "src/compiler/pipeline.h"
9 #include "src/compiler/scheduler.h" 9 #include "src/compiler/scheduler.h"
10 #include "src/objects-inl.h" 10 #include "src/objects-inl.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 os << *schedule_; 58 os << *schedule_;
59 } 59 }
60 // Invalidate RawMachineAssembler. 60 // Invalidate RawMachineAssembler.
61 Schedule* schedule = schedule_; 61 Schedule* schedule = schedule_;
62 schedule_ = nullptr; 62 schedule_ = nullptr;
63 return schedule; 63 return schedule;
64 } 64 }
65 65
66 66
67 Node* RawMachineAssembler::Parameter(size_t index) { 67 Node* RawMachineAssembler::Parameter(size_t index) {
68 DCHECK(index < parameter_count()); 68 DCHECK_LT(index, parameter_count());
Benedikt Meurer 2017/01/18 18:10:40 Same, please don't do this in this CL.
Camillo Bruni 2017/01/24 15:51:43 excluded.
69 return parameters_[index]; 69 return parameters_[index];
70 } 70 }
71 71
72 72
73 void RawMachineAssembler::Goto(RawMachineLabel* label) { 73 void RawMachineAssembler::Goto(RawMachineLabel* label) {
74 DCHECK(current_block_ != schedule()->end()); 74 DCHECK(current_block_ != schedule()->end());
75 schedule()->AddGoto(CurrentBlock(), Use(label)); 75 schedule()->AddGoto(CurrentBlock(), Use(label));
76 current_block_ = nullptr; 76 current_block_ = nullptr;
77 } 77 }
78 78
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 // The raw machine assembler nodes do not have effect and control inputs, 330 // The raw machine assembler nodes do not have effect and control inputs,
331 // so we disable checking input counts here. 331 // so we disable checking input counts here.
332 return graph()->NewNodeUnchecked(op, input_count, inputs); 332 return graph()->NewNodeUnchecked(op, input_count, inputs);
333 } 333 }
334 334
335 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); } 335 RawMachineLabel::~RawMachineLabel() { DCHECK(bound_ || !used_); }
336 336
337 } // namespace compiler 337 } // namespace compiler
338 } // namespace internal 338 } // namespace internal
339 } // namespace v8 339 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698