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

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

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/compiler/access-info.cc ('k') | src/crankshaft/hydrogen.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 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/ast.h" 10 #include "src/ast/ast.h"
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 int GetLocalFieldIndexFromMap(Handle<Map> map) const { 2626 int GetLocalFieldIndexFromMap(Handle<Map> map) const {
2627 DCHECK(lookup_type_ == DESCRIPTOR_TYPE || 2627 DCHECK(lookup_type_ == DESCRIPTOR_TYPE ||
2628 lookup_type_ == TRANSITION_TYPE); 2628 lookup_type_ == TRANSITION_TYPE);
2629 DCHECK(number_ < map->NumberOfOwnDescriptors()); 2629 DCHECK(number_ < map->NumberOfOwnDescriptors());
2630 int field_index = map->instance_descriptors()->GetFieldIndex(number_); 2630 int field_index = map->instance_descriptors()->GetFieldIndex(number_);
2631 return field_index - map->GetInObjectProperties(); 2631 return field_index - map->GetInObjectProperties();
2632 } 2632 }
2633 2633
2634 void LookupDescriptor(Map* map, Name* name) { 2634 void LookupDescriptor(Map* map, Name* name) {
2635 DescriptorArray* descriptors = map->instance_descriptors(); 2635 DescriptorArray* descriptors = map->instance_descriptors();
2636 int number = descriptors->SearchWithCache(name, map); 2636 int number = descriptors->SearchWithCache(isolate(), name, map);
2637 if (number == DescriptorArray::kNotFound) return NotFound(); 2637 if (number == DescriptorArray::kNotFound) return NotFound();
2638 lookup_type_ = DESCRIPTOR_TYPE; 2638 lookup_type_ = DESCRIPTOR_TYPE;
2639 details_ = descriptors->GetDetails(number); 2639 details_ = descriptors->GetDetails(number);
2640 number_ = number; 2640 number_ = number;
2641 } 2641 }
2642 void LookupTransition(Map* map, Name* name, PropertyAttributes attributes) { 2642 void LookupTransition(Map* map, Name* name, PropertyAttributes attributes) {
2643 Map* target = 2643 Map* target =
2644 TransitionArray::SearchTransition(map, kData, name, attributes); 2644 TransitionArray::SearchTransition(map, kData, name, attributes);
2645 if (target == NULL) return NotFound(); 2645 if (target == NULL) return NotFound();
2646 lookup_type_ = TRANSITION_TYPE; 2646 lookup_type_ = TRANSITION_TYPE;
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
3032 3032
3033 private: 3033 private:
3034 HGraphBuilder* builder_; 3034 HGraphBuilder* builder_;
3035 }; 3035 };
3036 3036
3037 3037
3038 } // namespace internal 3038 } // namespace internal
3039 } // namespace v8 3039 } // namespace v8
3040 3040
3041 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3041 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/access-info.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698