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

Side by Side Diff: src/hydrogen.h

Issue 179163003: Merged r19440 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 return false; 2352 return false;
2353 } 2353 }
2354 2354
2355 bool has_holder() { return !holder_.is_null(); } 2355 bool has_holder() { return !holder_.is_null(); }
2356 bool IsLoad() const { return access_type_ == LOAD; } 2356 bool IsLoad() const { return access_type_ == LOAD; }
2357 2357
2358 LookupResult* lookup() { return &lookup_; } 2358 LookupResult* lookup() { return &lookup_; }
2359 Handle<JSObject> holder() { return holder_; } 2359 Handle<JSObject> holder() { return holder_; }
2360 Handle<JSFunction> accessor() { return accessor_; } 2360 Handle<JSFunction> accessor() { return accessor_; }
2361 Handle<Object> constant() { return constant_; } 2361 Handle<Object> constant() { return constant_; }
2362 Handle<Object> transition() { return transition_; } 2362 Handle<Map> transition() { return handle(lookup_.GetTransitionTarget()); }
2363 HObjectAccess access() { return access_; } 2363 HObjectAccess access() { return access_; }
2364 2364
2365 private: 2365 private:
2366 Type* ToType(Handle<Map> map) { return builder_->ToType(map); } 2366 Type* ToType(Handle<Map> map) { return builder_->ToType(map); }
2367 Isolate* isolate() { return lookup_.isolate(); } 2367 Isolate* isolate() { return lookup_.isolate(); }
2368 CompilationInfo* current_info() { return builder_->current_info(); } 2368 CompilationInfo* current_info() { return builder_->current_info(); }
2369 2369
2370 bool LoadResult(Handle<Map> map); 2370 bool LoadResult(Handle<Map> map);
2371 bool LookupDescriptor(); 2371 bool LookupDescriptor();
2372 bool LookupInPrototypes(); 2372 bool LookupInPrototypes();
2373 bool IsCompatible(PropertyAccessInfo* other); 2373 bool IsCompatible(PropertyAccessInfo* other);
2374 2374
2375 void GeneralizeRepresentation(Representation r) { 2375 void GeneralizeRepresentation(Representation r) {
2376 access_ = access_.WithRepresentation( 2376 access_ = access_.WithRepresentation(
2377 access_.representation().generalize(r)); 2377 access_.representation().generalize(r));
2378 } 2378 }
2379 2379
2380 LookupResult lookup_; 2380 LookupResult lookup_;
2381 HOptimizedGraphBuilder* builder_; 2381 HOptimizedGraphBuilder* builder_;
2382 PropertyAccessType access_type_; 2382 PropertyAccessType access_type_;
2383 Type* type_; 2383 Type* type_;
2384 Handle<String> name_; 2384 Handle<String> name_;
2385 Handle<JSObject> holder_; 2385 Handle<JSObject> holder_;
2386 Handle<JSFunction> accessor_; 2386 Handle<JSFunction> accessor_;
2387 Handle<JSObject> api_holder_; 2387 Handle<JSObject> api_holder_;
2388 Handle<Object> constant_; 2388 Handle<Object> constant_;
2389 Handle<Map> transition_;
2390 HObjectAccess access_; 2389 HObjectAccess access_;
2391 }; 2390 };
2392 2391
2393 HInstruction* BuildMonomorphicAccess(PropertyAccessInfo* info, 2392 HInstruction* BuildMonomorphicAccess(PropertyAccessInfo* info,
2394 HValue* object, 2393 HValue* object,
2395 HValue* checked_object, 2394 HValue* checked_object,
2396 HValue* value, 2395 HValue* value,
2397 BailoutId ast_id, 2396 BailoutId ast_id,
2398 BailoutId return_id, 2397 BailoutId return_id,
2399 bool can_inline_accessor = true); 2398 bool can_inline_accessor = true);
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
2742 } 2741 }
2743 2742
2744 private: 2743 private:
2745 HGraphBuilder* builder_; 2744 HGraphBuilder* builder_;
2746 }; 2745 };
2747 2746
2748 2747
2749 } } // namespace v8::internal 2748 } } // namespace v8::internal
2750 2749
2751 #endif // V8_HYDROGEN_H_ 2750 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698