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

Side by Side Diff: src/hydrogen.h

Issue 27674002: Inline number to string conversion for string addition into BinaryOp(Stub). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Improve string-check in BuildBinaryOperation. Created 7 years, 2 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/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('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 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 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 HValue* elements, 1227 HValue* elements,
1228 ElementsKind kind, 1228 ElementsKind kind,
1229 HValue* length); 1229 HValue* length);
1230 1230
1231 void BuildTransitionElementsKind(HValue* object, 1231 void BuildTransitionElementsKind(HValue* object,
1232 HValue* map, 1232 HValue* map,
1233 ElementsKind from_kind, 1233 ElementsKind from_kind,
1234 ElementsKind to_kind, 1234 ElementsKind to_kind,
1235 bool is_jsarray); 1235 bool is_jsarray);
1236 1236
1237 // Do lookup in the number string cache. If the object is not found 1237 HValue* BuildNumberToString(HValue* object, Handle<Type> type);
1238 // in the cache, the false branch of the continuation is taken;
1239 // otherwise the true branch is taken and the returned value contains
1240 // the cache value for the object. The returned value must NOT be used
1241 // on the false branch.
1242 HValue* BuildLookupNumberStringCache(HValue* object,
1243 HIfContinuation* continuation);
1244 HValue* BuildNumberToString(HValue* number);
1245 1238
1246 HInstruction* BuildUncheckedMonomorphicElementAccess( 1239 HInstruction* BuildUncheckedMonomorphicElementAccess(
1247 HValue* checked_object, 1240 HValue* checked_object,
1248 HValue* key, 1241 HValue* key,
1249 HValue* val, 1242 HValue* val,
1250 bool is_js_array, 1243 bool is_js_array,
1251 ElementsKind elements_kind, 1244 ElementsKind elements_kind,
1252 bool is_store, 1245 bool is_store,
1253 LoadKeyedHoleMode load_mode, 1246 LoadKeyedHoleMode load_mode,
1254 KeyedAccessStoreMode store_mode); 1247 KeyedAccessStoreMode store_mode);
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
2467 } 2460 }
2468 2461
2469 private: 2462 private:
2470 HGraphBuilder* builder_; 2463 HGraphBuilder* builder_;
2471 }; 2464 };
2472 2465
2473 2466
2474 } } // namespace v8::internal 2467 } } // namespace v8::internal
2475 2468
2476 #endif // V8_HYDROGEN_H_ 2469 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698