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

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

Issue 1704353002: [runtime] Force internalize names used before lookup in in DescriptorArray and TransitionArray (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/factory.h » ('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 2497 matching lines...) Expand 10 before | Expand all | Expand 10 after
2508 Handle<Map> initial_map); 2508 Handle<Map> initial_map);
2509 2509
2510 class PropertyAccessInfo { 2510 class PropertyAccessInfo {
2511 public: 2511 public:
2512 PropertyAccessInfo(HOptimizedGraphBuilder* builder, 2512 PropertyAccessInfo(HOptimizedGraphBuilder* builder,
2513 PropertyAccessType access_type, Handle<Map> map, 2513 PropertyAccessType access_type, Handle<Map> map,
2514 Handle<Name> name) 2514 Handle<Name> name)
2515 : builder_(builder), 2515 : builder_(builder),
2516 access_type_(access_type), 2516 access_type_(access_type),
2517 map_(map), 2517 map_(map),
2518 name_(name), 2518 name_(isolate()->factory()->InternalizeName(name)),
2519 field_type_(HType::Tagged()), 2519 field_type_(HType::Tagged()),
2520 access_(HObjectAccess::ForMap()), 2520 access_(HObjectAccess::ForMap()),
2521 lookup_type_(NOT_FOUND), 2521 lookup_type_(NOT_FOUND),
2522 details_(NONE, DATA, Representation::None()) {} 2522 details_(NONE, DATA, Representation::None()) {}
2523 2523
2524 // Checkes whether this PropertyAccessInfo can be handled as a monomorphic 2524 // Checkes whether this PropertyAccessInfo can be handled as a monomorphic
2525 // load named. It additionally fills in the fields necessary to generate the 2525 // load named. It additionally fills in the fields necessary to generate the
2526 // lookup code. 2526 // lookup code.
2527 bool CanAccessMonomorphic(); 2527 bool CanAccessMonomorphic();
2528 2528
(...skipping 503 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/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698