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 100613004: Use optimized code map to cache OSR code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: correctly upload stuff 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 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after
7486 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7492 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7487 }; 7493 };
7488 7494
7489 7495
7490 #undef DECLARE_INSTRUCTION 7496 #undef DECLARE_INSTRUCTION
7491 #undef DECLARE_CONCRETE_INSTRUCTION 7497 #undef DECLARE_CONCRETE_INSTRUCTION
7492 7498
7493 } } // namespace v8::internal 7499 } } // namespace v8::internal
7494 7500
7495 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7501 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/mark-compact.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698