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

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

Issue 14813029: Error found in test262 on ARM: BinaryOpStub could call out to a built-in and push … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code review comments Created 7 years, 7 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.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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 Register scratch); 211 Register scratch);
212 static void GenerateHashGetHash(MacroAssembler* masm, 212 static void GenerateHashGetHash(MacroAssembler* masm,
213 Register hash, 213 Register hash,
214 Register scratch); 214 Register scratch);
215 215
216 private: 216 private:
217 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper); 217 DISALLOW_IMPLICIT_CONSTRUCTORS(StringHelper);
218 }; 218 };
219 219
220 220
221 // Flag that indicates how to generate code for the stub StringAddStub.
222 enum StringAddFlags { 221 enum StringAddFlags {
223 NO_STRING_ADD_FLAGS = 0, 222 NO_STRING_ADD_FLAGS = 1 << 0,
224 // Omit left string check in stub (left is definitely a string). 223 // Omit left string check in stub (left is definitely a string).
225 NO_STRING_CHECK_LEFT_IN_STUB = 1 << 0, 224 NO_STRING_CHECK_LEFT_IN_STUB = 1 << 1,
226 // Omit right string check in stub (right is definitely a string). 225 // Omit right string check in stub (right is definitely a string).
227 NO_STRING_CHECK_RIGHT_IN_STUB = 1 << 1, 226 NO_STRING_CHECK_RIGHT_IN_STUB = 1 << 2,
227 // Stub needs a frame before calling the runtime
228 ERECT_FRAME = 1 << 3,
228 // Omit both string checks in stub. 229 // Omit both string checks in stub.
229 NO_STRING_CHECK_IN_STUB = 230 NO_STRING_CHECK_IN_STUB =
230 NO_STRING_CHECK_LEFT_IN_STUB | NO_STRING_CHECK_RIGHT_IN_STUB 231 NO_STRING_CHECK_LEFT_IN_STUB | NO_STRING_CHECK_RIGHT_IN_STUB
231 }; 232 };
232 233
233 234
234 class StringAddStub: public PlatformCodeStub { 235 class StringAddStub: public PlatformCodeStub {
235 public: 236 public:
236 explicit StringAddStub(StringAddFlags flags) : flags_(flags) {} 237 explicit StringAddStub(StringAddFlags flags) : flags_(flags) {}
237 238
238 private: 239 private:
239 Major MajorKey() { return StringAdd; } 240 Major MajorKey() { return StringAdd; }
240 int MinorKey() { return flags_; } 241 int MinorKey() { return flags_; }
241 242
242 void Generate(MacroAssembler* masm); 243 void Generate(MacroAssembler* masm);
243 244
244 void GenerateConvertArgument(MacroAssembler* masm, 245 void GenerateConvertArgument(MacroAssembler* masm,
245 int stack_offset, 246 int stack_offset,
246 Register arg, 247 Register arg,
247 Register scratch1, 248 Register scratch1,
248 Register scratch2, 249 Register scratch2,
249 Register scratch3, 250 Register scratch3,
250 Label* slow); 251 Label* slow);
251 252
253 void GenerateRegisterArgsPush(MacroAssembler* masm);
254 void GenerateRegisterArgsPop(MacroAssembler* masm, Register temp);
255
252 const StringAddFlags flags_; 256 const StringAddFlags flags_;
253 }; 257 };
254 258
255 259
256 class SubStringStub: public PlatformCodeStub { 260 class SubStringStub: public PlatformCodeStub {
257 public: 261 public:
258 SubStringStub() {} 262 SubStringStub() {}
259 263
260 private: 264 private:
261 Major MajorKey() { return SubString; } 265 Major MajorKey() { return SubString; }
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 Register address_; 648 Register address_;
645 RememberedSetAction remembered_set_action_; 649 RememberedSetAction remembered_set_action_;
646 SaveFPRegsMode save_fp_regs_mode_; 650 SaveFPRegsMode save_fp_regs_mode_;
647 RegisterAllocation regs_; 651 RegisterAllocation regs_;
648 }; 652 };
649 653
650 654
651 } } // namespace v8::internal 655 } } // namespace v8::internal
652 656
653 #endif // V8_IA32_CODE_STUBS_IA32_H_ 657 #endif // V8_IA32_CODE_STUBS_IA32_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698