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/hydrogen-instructions.h

Issue 59823002: Reset opt count on optimized code map lookup failure. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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
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 5825 matching lines...) Expand 10 before | Expand all | Expand 10 after
5836 5836
5837 static HObjectAccess ForFirstContextSlot() { 5837 static HObjectAccess ForFirstContextSlot() {
5838 return HObjectAccess(kInobject, SharedFunctionInfo::kFirstContextSlot); 5838 return HObjectAccess(kInobject, SharedFunctionInfo::kFirstContextSlot);
5839 } 5839 }
5840 5840
5841 static HObjectAccess ForOptimizedCodeMap() { 5841 static HObjectAccess ForOptimizedCodeMap() {
5842 return HObjectAccess(kInobject, 5842 return HObjectAccess(kInobject,
5843 SharedFunctionInfo::kOptimizedCodeMapOffset); 5843 SharedFunctionInfo::kOptimizedCodeMapOffset);
5844 } 5844 }
5845 5845
5846 static HObjectAccess ForOptCountAndBailoutReason() {
5847 return HObjectAccess(kInobject,
5848 SharedFunctionInfo::kOptCountAndBailoutReasonOffset);
5849 }
5850
5846 static HObjectAccess ForFunctionContextPointer() { 5851 static HObjectAccess ForFunctionContextPointer() {
5847 return HObjectAccess(kInobject, JSFunction::kContextOffset); 5852 return HObjectAccess(kInobject, JSFunction::kContextOffset);
5848 } 5853 }
5849 5854
5850 static HObjectAccess ForMap() { 5855 static HObjectAccess ForMap() {
5851 return HObjectAccess(kMaps, JSObject::kMapOffset); 5856 return HObjectAccess(kMaps, JSObject::kMapOffset);
5852 } 5857 }
5853 5858
5854 static HObjectAccess ForMapInstanceSize() { 5859 static HObjectAccess ForMapInstanceSize() {
5855 return HObjectAccess(kInobject, 5860 return HObjectAccess(kInobject,
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after
7190 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7195 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7191 }; 7196 };
7192 7197
7193 7198
7194 #undef DECLARE_INSTRUCTION 7199 #undef DECLARE_INSTRUCTION
7195 #undef DECLARE_CONCRETE_INSTRUCTION 7200 #undef DECLARE_CONCRETE_INSTRUCTION
7196 7201
7197 } } // namespace v8::internal 7202 } } // namespace v8::internal
7198 7203
7199 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7204 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698