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

Side by Side Diff: src/ia32/code-stubs-ia32.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/ia32/builtins-ia32.cc ('k') | src/ia32/code-stubs-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 Register scratch, 214 Register scratch,
215 Label* chars_not_equal, 215 Label* chars_not_equal,
216 Label::Distance chars_not_equal_near = Label::kFar); 216 Label::Distance chars_not_equal_near = Label::kFar);
217 }; 217 };
218 218
219 219
220 class NumberToStringStub: public PlatformCodeStub { 220 class NumberToStringStub: public PlatformCodeStub {
221 public: 221 public:
222 NumberToStringStub() { } 222 NumberToStringStub() { }
223 223
224 // Generate code to do a lookup in the number string cache. If the number in
225 // the register object is found in the cache the generated code falls through
226 // with the result in the result register. The object and the result register
227 // can be the same. If the number is not found in the cache the code jumps to
228 // the label not_found with only the content of register object unchanged.
229 static void GenerateLookupNumberStringCache(MacroAssembler* masm,
230 Register object,
231 Register result,
232 Register scratch1,
233 Register scratch2,
234 Label* not_found);
235
236 private: 224 private:
237 Major MajorKey() { return NumberToString; } 225 Major MajorKey() { return NumberToString; }
238 int MinorKey() { return 0; } 226 int MinorKey() { return 0; }
239 227
240 void Generate(MacroAssembler* masm); 228 void Generate(MacroAssembler* masm);
241 }; 229 };
242 230
243 231
244 class NameDictionaryLookupStub: public PlatformCodeStub { 232 class NameDictionaryLookupStub: public PlatformCodeStub {
245 public: 233 public:
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 Register address_; 547 Register address_;
560 RememberedSetAction remembered_set_action_; 548 RememberedSetAction remembered_set_action_;
561 SaveFPRegsMode save_fp_regs_mode_; 549 SaveFPRegsMode save_fp_regs_mode_;
562 RegisterAllocation regs_; 550 RegisterAllocation regs_;
563 }; 551 };
564 552
565 553
566 } } // namespace v8::internal 554 } } // namespace v8::internal
567 555
568 #endif // V8_IA32_CODE_STUBS_IA32_H_ 556 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698