OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |