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

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

Issue 23726041: Turn the NumberToStringStub into a hydrogen stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. 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/hydrogen-instructions.h ('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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 MacroAssembler* masm, 210 MacroAssembler* masm,
211 Register left, 211 Register left,
212 Register right, 212 Register right,
213 Register length, 213 Register length,
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 {
221 public:
222 NumberToStringStub() { }
223
224 private:
225 Major MajorKey() { return NumberToString; }
226 int MinorKey() { return 0; }
227
228 void Generate(MacroAssembler* masm);
229 };
230
231
232 class NameDictionaryLookupStub: public PlatformCodeStub { 220 class NameDictionaryLookupStub: public PlatformCodeStub {
233 public: 221 public:
234 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP }; 222 enum LookupMode { POSITIVE_LOOKUP, NEGATIVE_LOOKUP };
235 223
236 NameDictionaryLookupStub(Register dictionary, 224 NameDictionaryLookupStub(Register dictionary,
237 Register result, 225 Register result,
238 Register index, 226 Register index,
239 LookupMode mode) 227 LookupMode mode)
240 : dictionary_(dictionary), result_(result), index_(index), mode_(mode) { } 228 : dictionary_(dictionary), result_(result), index_(index), mode_(mode) { }
241 229
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 Register address_; 535 Register address_;
548 RememberedSetAction remembered_set_action_; 536 RememberedSetAction remembered_set_action_;
549 SaveFPRegsMode save_fp_regs_mode_; 537 SaveFPRegsMode save_fp_regs_mode_;
550 RegisterAllocation regs_; 538 RegisterAllocation regs_;
551 }; 539 };
552 540
553 541
554 } } // namespace v8::internal 542 } } // namespace v8::internal
555 543
556 #endif // V8_IA32_CODE_STUBS_IA32_H_ 544 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698