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

Side by Side Diff: src/compiler/code-assembler.cc

Issue 2484003002: [builtins] implement JSBuiltinReducer for ArrayIteratorNext() (Closed)
Patch Set: CheckIf() for ArrayBufferWasNeutered() rather than a branch, which hopefully can be eliminated, and… Created 4 years, 1 month 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 #include "src/compiler/code-assembler.h" 5 #include "src/compiler/code-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 return HeapConstant(Handle<HeapObject>::cast(root)); 292 return HeapConstant(Handle<HeapObject>::cast(root));
293 } 293 }
294 } 294 }
295 295
296 Node* roots_array_start = 296 Node* roots_array_start =
297 ExternalConstant(ExternalReference::roots_array_start(isolate())); 297 ExternalConstant(ExternalReference::roots_array_start(isolate()));
298 return Load(MachineType::AnyTagged(), roots_array_start, 298 return Load(MachineType::AnyTagged(), roots_array_start,
299 IntPtrConstant(root_index * kPointerSize)); 299 IntPtrConstant(root_index * kPointerSize));
300 } 300 }
301 301
302 Node* CodeAssembler::LoadFirstNativeContext() {
303 Node* native_contexts_list = ExternalConstant(
304 ExternalReference::native_contexts_list_address(isolate()));
305 return Load(MachineType::AnyTagged(), native_contexts_list,
306 IntPtrConstant(0));
307 }
308
302 Node* CodeAssembler::Store(MachineRepresentation rep, Node* base, Node* value) { 309 Node* CodeAssembler::Store(MachineRepresentation rep, Node* base, Node* value) {
303 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier); 310 return raw_assembler_->Store(rep, base, value, kFullWriteBarrier);
304 } 311 }
305 312
306 Node* CodeAssembler::Store(MachineRepresentation rep, Node* base, Node* index, 313 Node* CodeAssembler::Store(MachineRepresentation rep, Node* base, Node* index,
307 Node* value) { 314 Node* value) {
308 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier); 315 return raw_assembler_->Store(rep, base, index, value, kFullWriteBarrier);
309 } 316 }
310 317
311 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base, 318 Node* CodeAssembler::StoreNoWriteBarrier(MachineRepresentation rep, Node* base,
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 } 1186 }
1180 } 1187 }
1181 } 1188 }
1182 1189
1183 bound_ = true; 1190 bound_ = true;
1184 } 1191 }
1185 1192
1186 } // namespace compiler 1193 } // namespace compiler
1187 } // namespace internal 1194 } // namespace internal
1188 } // namespace v8 1195 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698