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

Side by Side Diff: src/hydrogen-instructions.h

Issue 10696139: Improved printing of CheckPrototypeMaps instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')
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 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 2274
2275 Handle<JSObject> prototype() const { return prototype_; } 2275 Handle<JSObject> prototype() const { return prototype_; }
2276 Handle<JSObject> holder() const { return holder_; } 2276 Handle<JSObject> holder() const { return holder_; }
2277 2277
2278 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps) 2278 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps)
2279 2279
2280 virtual Representation RequiredInputRepresentation(int index) { 2280 virtual Representation RequiredInputRepresentation(int index) {
2281 return Representation::None(); 2281 return Representation::None();
2282 } 2282 }
2283 2283
2284 virtual void PrintDataTo(StringStream* stream);
2285
2284 virtual intptr_t Hashcode() { 2286 virtual intptr_t Hashcode() {
2285 ASSERT(!HEAP->IsAllocationAllowed()); 2287 ASSERT(!HEAP->IsAllocationAllowed());
2286 intptr_t hash = reinterpret_cast<intptr_t>(*prototype()); 2288 intptr_t hash = reinterpret_cast<intptr_t>(*prototype());
2287 hash = 17 * hash + reinterpret_cast<intptr_t>(*holder()); 2289 hash = 17 * hash + reinterpret_cast<intptr_t>(*holder());
2288 return hash; 2290 return hash;
2289 } 2291 }
2290 2292
2291 protected: 2293 protected:
2292 virtual bool DataEquals(HValue* other) { 2294 virtual bool DataEquals(HValue* other) {
2293 HCheckPrototypeMaps* b = HCheckPrototypeMaps::cast(other); 2295 HCheckPrototypeMaps* b = HCheckPrototypeMaps::cast(other);
(...skipping 2807 matching lines...) Expand 10 before | Expand all | Expand 10 after
5101 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex); 5103 DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex);
5102 }; 5104 };
5103 5105
5104 5106
5105 #undef DECLARE_INSTRUCTION 5107 #undef DECLARE_INSTRUCTION
5106 #undef DECLARE_CONCRETE_INSTRUCTION 5108 #undef DECLARE_CONCRETE_INSTRUCTION
5107 5109
5108 } } // namespace v8::internal 5110 } } // namespace v8::internal
5109 5111
5110 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 5112 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | src/hydrogen-instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698