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

Side by Side Diff: src/crankshaft/hydrogen.h

Issue 1409123003: [runtime] Avoid @@isConcatSpreadable lookup for fast path Array.prototype.concat (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: simplifications Created 5 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CRANKSHAFT_HYDROGEN_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_
6 #define V8_CRANKSHAFT_HYDROGEN_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_H_
7 7
8 #include "src/accessors.h" 8 #include "src/accessors.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/ast.h" 10 #include "src/ast.h"
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 use_optimistic_licm_ = value; 406 use_optimistic_licm_ = value;
407 } 407 }
408 408
409 void MarkRecursive() { is_recursive_ = true; } 409 void MarkRecursive() { is_recursive_ = true; }
410 bool is_recursive() const { return is_recursive_; } 410 bool is_recursive() const { return is_recursive_; }
411 411
412 void MarkDependsOnEmptyArrayProtoElements() { 412 void MarkDependsOnEmptyArrayProtoElements() {
413 // Add map dependency if not already added. 413 // Add map dependency if not already added.
414 if (depends_on_empty_array_proto_elements_) return; 414 if (depends_on_empty_array_proto_elements_) return;
415 info()->dependencies()->AssumePropertyCell( 415 info()->dependencies()->AssumePropertyCell(
416 isolate()->factory()->array_protector()); 416 isolate()->factory()->array_elements_protector());
417 depends_on_empty_array_proto_elements_ = true; 417 depends_on_empty_array_proto_elements_ = true;
418 } 418 }
419 419
420 bool depends_on_empty_array_proto_elements() { 420 bool depends_on_empty_array_proto_elements() {
421 return depends_on_empty_array_proto_elements_; 421 return depends_on_empty_array_proto_elements_;
422 } 422 }
423 423
424 bool has_uint32_instructions() { 424 bool has_uint32_instructions() {
425 DCHECK(uint32_instructions_ == NULL || !uint32_instructions_->is_empty()); 425 DCHECK(uint32_instructions_ == NULL || !uint32_instructions_->is_empty());
426 return uint32_instructions_ != NULL; 426 return uint32_instructions_ != NULL;
(...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after
3072 3072
3073 private: 3073 private:
3074 HGraphBuilder* builder_; 3074 HGraphBuilder* builder_;
3075 }; 3075 };
3076 3076
3077 3077
3078 } // namespace internal 3078 } // namespace internal
3079 } // namespace v8 3079 } // namespace v8
3080 3080
3081 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3081 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698