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

Side by Side Diff: src/arm/code-stubs-arm.h

Issue 23618056: Move NumberToStringStub::GenerateLookupNumberStringCache to the MacroAssembler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/arm/builtins-arm.cc ('k') | src/arm/code-stubs-arm.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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 254 }
255 255
256 void Generate(MacroAssembler* masm); 256 void Generate(MacroAssembler* masm);
257 }; 257 };
258 258
259 259
260 class NumberToStringStub: public PlatformCodeStub { 260 class NumberToStringStub: public PlatformCodeStub {
261 public: 261 public:
262 NumberToStringStub() { } 262 NumberToStringStub() { }
263 263
264 // Generate code to do a lookup in the number string cache. If the number in
265 // the register object is found in the cache the generated code falls through
266 // with the result in the result register. The object and the result register
267 // can be the same. If the number is not found in the cache the code jumps to
268 // the label not_found with only the content of register object unchanged.
269 static void GenerateLookupNumberStringCache(MacroAssembler* masm,
270 Register object,
271 Register result,
272 Register scratch1,
273 Register scratch2,
274 Register scratch3,
275 Label* not_found);
276
277 private: 264 private:
278 Major MajorKey() { return NumberToString; } 265 Major MajorKey() { return NumberToString; }
279 int MinorKey() { return 0; } 266 int MinorKey() { return 0; }
280 267
281 void Generate(MacroAssembler* masm); 268 void Generate(MacroAssembler* masm);
282 }; 269 };
283 270
284 271
285 class RecordWriteStub: public PlatformCodeStub { 272 class RecordWriteStub: public PlatformCodeStub {
286 public: 273 public:
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 517
531 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 518 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
532 519
533 LookupMode mode_; 520 LookupMode mode_;
534 }; 521 };
535 522
536 523
537 } } // namespace v8::internal 524 } } // namespace v8::internal
538 525
539 #endif // V8_ARM_CODE_STUBS_ARM_H_ 526 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698