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

Side by Side Diff: src/objects.cc

Issue 553117: Implementing inline caches for binary operations (ia32).... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 | « 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 5108 matching lines...) Expand 10 before | Expand all | Expand 10 after
5119 const char* Code::Kind2String(Kind kind) { 5119 const char* Code::Kind2String(Kind kind) {
5120 switch (kind) { 5120 switch (kind) {
5121 case FUNCTION: return "FUNCTION"; 5121 case FUNCTION: return "FUNCTION";
5122 case STUB: return "STUB"; 5122 case STUB: return "STUB";
5123 case BUILTIN: return "BUILTIN"; 5123 case BUILTIN: return "BUILTIN";
5124 case LOAD_IC: return "LOAD_IC"; 5124 case LOAD_IC: return "LOAD_IC";
5125 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; 5125 case KEYED_LOAD_IC: return "KEYED_LOAD_IC";
5126 case STORE_IC: return "STORE_IC"; 5126 case STORE_IC: return "STORE_IC";
5127 case KEYED_STORE_IC: return "KEYED_STORE_IC"; 5127 case KEYED_STORE_IC: return "KEYED_STORE_IC";
5128 case CALL_IC: return "CALL_IC"; 5128 case CALL_IC: return "CALL_IC";
5129 case BINARY_OP_IC: return "BINARY_OP_IC";
5129 } 5130 }
5130 UNREACHABLE(); 5131 UNREACHABLE();
5131 return NULL; 5132 return NULL;
5132 } 5133 }
5133 5134
5134 5135
5135 const char* Code::ICState2String(InlineCacheState state) { 5136 const char* Code::ICState2String(InlineCacheState state) {
5136 switch (state) { 5137 switch (state) {
5137 case UNINITIALIZED: return "UNINITIALIZED"; 5138 case UNINITIALIZED: return "UNINITIALIZED";
5138 case PREMONOMORPHIC: return "PREMONOMORPHIC"; 5139 case PREMONOMORPHIC: return "PREMONOMORPHIC";
(...skipping 3222 matching lines...) Expand 10 before | Expand all | Expand 10 after
8361 if (break_point_objects()->IsUndefined()) return 0; 8362 if (break_point_objects()->IsUndefined()) return 0;
8362 // Single beak point. 8363 // Single beak point.
8363 if (!break_point_objects()->IsFixedArray()) return 1; 8364 if (!break_point_objects()->IsFixedArray()) return 1;
8364 // Multiple break points. 8365 // Multiple break points.
8365 return FixedArray::cast(break_point_objects())->length(); 8366 return FixedArray::cast(break_point_objects())->length();
8366 } 8367 }
8367 #endif 8368 #endif
8368 8369
8369 8370
8370 } } // namespace v8::internal 8371 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698