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

Side by Side Diff: src/objects.cc

Issue 551093: Implementing inline caches for GenericBinaryOpStub. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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
« src/ic.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 5070 matching lines...) Expand 10 before | Expand all | Expand 10 after
5081 const char* Code::Kind2String(Kind kind) { 5081 const char* Code::Kind2String(Kind kind) {
5082 switch (kind) { 5082 switch (kind) {
5083 case FUNCTION: return "FUNCTION"; 5083 case FUNCTION: return "FUNCTION";
5084 case STUB: return "STUB"; 5084 case STUB: return "STUB";
5085 case BUILTIN: return "BUILTIN"; 5085 case BUILTIN: return "BUILTIN";
5086 case LOAD_IC: return "LOAD_IC"; 5086 case LOAD_IC: return "LOAD_IC";
5087 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; 5087 case KEYED_LOAD_IC: return "KEYED_LOAD_IC";
5088 case STORE_IC: return "STORE_IC"; 5088 case STORE_IC: return "STORE_IC";
5089 case KEYED_STORE_IC: return "KEYED_STORE_IC"; 5089 case KEYED_STORE_IC: return "KEYED_STORE_IC";
5090 case CALL_IC: return "CALL_IC"; 5090 case CALL_IC: return "CALL_IC";
5091 case BINARY_OP_IC: return "BINARY_OP_IC";
5091 } 5092 }
5092 UNREACHABLE(); 5093 UNREACHABLE();
5093 return NULL; 5094 return NULL;
5094 } 5095 }
5095 5096
5096 5097
5097 const char* Code::ICState2String(InlineCacheState state) { 5098 const char* Code::ICState2String(InlineCacheState state) {
5098 switch (state) { 5099 switch (state) {
5099 case UNINITIALIZED: return "UNINITIALIZED"; 5100 case UNINITIALIZED: return "UNINITIALIZED";
5100 case PREMONOMORPHIC: return "PREMONOMORPHIC"; 5101 case PREMONOMORPHIC: return "PREMONOMORPHIC";
(...skipping 3196 matching lines...) Expand 10 before | Expand all | Expand 10 after
8297 if (break_point_objects()->IsUndefined()) return 0; 8298 if (break_point_objects()->IsUndefined()) return 0;
8298 // Single beak point. 8299 // Single beak point.
8299 if (!break_point_objects()->IsFixedArray()) return 1; 8300 if (!break_point_objects()->IsFixedArray()) return 1;
8300 // Multiple break points. 8301 // Multiple break points.
8301 return FixedArray::cast(break_point_objects())->length(); 8302 return FixedArray::cast(break_point_objects())->length();
8302 } 8303 }
8303 #endif 8304 #endif
8304 8305
8305 8306
8306 } } // namespace v8::internal 8307 } } // namespace v8::internal
OLDNEW
« src/ic.cc ('K') | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698