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

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

Issue 1706833002: [runtime] pass in the Isolate into SearchWithCache (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/crankshaft/hydrogen.h ('k') | src/lookup.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast/ast-numbering.h" 10 #include "src/ast/ast-numbering.h"
(...skipping 8765 matching lines...) Expand 10 before | Expand all | Expand 10 after
8776 } 8776 }
8777 8777
8778 8778
8779 // static 8779 // static
8780 bool HOptimizedGraphBuilder::IsReadOnlyLengthDescriptor( 8780 bool HOptimizedGraphBuilder::IsReadOnlyLengthDescriptor(
8781 Handle<Map> jsarray_map) { 8781 Handle<Map> jsarray_map) {
8782 DCHECK(!jsarray_map->is_dictionary_map()); 8782 DCHECK(!jsarray_map->is_dictionary_map());
8783 Isolate* isolate = jsarray_map->GetIsolate(); 8783 Isolate* isolate = jsarray_map->GetIsolate();
8784 Handle<Name> length_string = isolate->factory()->length_string(); 8784 Handle<Name> length_string = isolate->factory()->length_string();
8785 DescriptorArray* descriptors = jsarray_map->instance_descriptors(); 8785 DescriptorArray* descriptors = jsarray_map->instance_descriptors();
8786 int number = descriptors->SearchWithCache(*length_string, *jsarray_map); 8786 int number =
8787 descriptors->SearchWithCache(isolate, *length_string, *jsarray_map);
8787 DCHECK_NE(DescriptorArray::kNotFound, number); 8788 DCHECK_NE(DescriptorArray::kNotFound, number);
8788 return descriptors->GetDetails(number).IsReadOnly(); 8789 return descriptors->GetDetails(number).IsReadOnly();
8789 } 8790 }
8790 8791
8791 8792
8792 // static 8793 // static
8793 bool HOptimizedGraphBuilder::CanInlineArrayResizeOperation( 8794 bool HOptimizedGraphBuilder::CanInlineArrayResizeOperation(
8794 Handle<Map> receiver_map) { 8795 Handle<Map> receiver_map) {
8795 return !receiver_map.is_null() && receiver_map->prototype()->IsJSObject() && 8796 return !receiver_map.is_null() && receiver_map->prototype()->IsJSObject() &&
8796 receiver_map->instance_type() == JS_ARRAY_TYPE && 8797 receiver_map->instance_type() == JS_ARRAY_TYPE &&
(...skipping 4762 matching lines...) Expand 10 before | Expand all | Expand 10 after
13559 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13560 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13560 } 13561 }
13561 13562
13562 #ifdef DEBUG 13563 #ifdef DEBUG
13563 graph_->Verify(false); // No full verify. 13564 graph_->Verify(false); // No full verify.
13564 #endif 13565 #endif
13565 } 13566 }
13566 13567
13567 } // namespace internal 13568 } // namespace internal
13568 } // namespace v8 13569 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.h ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698