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

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

Issue 101853003: Cache optimized code for OSR. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 6000 matching lines...) Expand 10 before | Expand all | Expand 10 after
6011 } 6011 }
6012 6012
6013 static HObjectAccess ForFirstCodeSlot() { 6013 static HObjectAccess ForFirstCodeSlot() {
6014 return HObjectAccess(kInobject, SharedFunctionInfo::kFirstCodeSlot); 6014 return HObjectAccess(kInobject, SharedFunctionInfo::kFirstCodeSlot);
6015 } 6015 }
6016 6016
6017 static HObjectAccess ForFirstContextSlot() { 6017 static HObjectAccess ForFirstContextSlot() {
6018 return HObjectAccess(kInobject, SharedFunctionInfo::kFirstContextSlot); 6018 return HObjectAccess(kInobject, SharedFunctionInfo::kFirstContextSlot);
6019 } 6019 }
6020 6020
6021 static HObjectAccess ForFirstOsrAstIdSlot() {
6022 return HObjectAccess(kInobject,
6023 SharedFunctionInfo::kFirstOsrAstIdSlot,
6024 Representation::Smi());
6025 }
6026
6021 static HObjectAccess ForOptimizedCodeMap() { 6027 static HObjectAccess ForOptimizedCodeMap() {
6022 return HObjectAccess(kInobject, 6028 return HObjectAccess(kInobject,
6023 SharedFunctionInfo::kOptimizedCodeMapOffset); 6029 SharedFunctionInfo::kOptimizedCodeMapOffset);
6024 } 6030 }
6025 6031
6026 static HObjectAccess ForFunctionContextPointer() { 6032 static HObjectAccess ForFunctionContextPointer() {
6027 return HObjectAccess(kInobject, JSFunction::kContextOffset); 6033 return HObjectAccess(kInobject, JSFunction::kContextOffset);
6028 } 6034 }
6029 6035
6030 static HObjectAccess ForMap() { 6036 static HObjectAccess ForMap() {
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
7493 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7499 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7494 }; 7500 };
7495 7501
7496 7502
7497 #undef DECLARE_INSTRUCTION 7503 #undef DECLARE_INSTRUCTION
7498 #undef DECLARE_CONCRETE_INSTRUCTION 7504 #undef DECLARE_CONCRETE_INSTRUCTION
7499 7505
7500 } } // namespace v8::internal 7506 } } // namespace v8::internal
7501 7507
7502 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7508 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« src/code-stubs-hydrogen.cc ('K') | « src/factory.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698