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

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

Issue 6606006: [Isolates] Merge 6500:6700 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 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/assembler-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 int MinorKey() { 281 int MinorKey() {
282 return OpBits::encode(op_) 282 return OpBits::encode(op_)
283 | ModeBits::encode(mode_) 283 | ModeBits::encode(mode_)
284 | VFP3Bits::encode(use_vfp3_) 284 | VFP3Bits::encode(use_vfp3_)
285 | OperandTypeInfoBits::encode(operands_type_) 285 | OperandTypeInfoBits::encode(operands_type_)
286 | ResultTypeInfoBits::encode(result_type_); 286 | ResultTypeInfoBits::encode(result_type_);
287 } 287 }
288 288
289 void Generate(MacroAssembler* masm); 289 void Generate(MacroAssembler* masm);
290 void GenerateGeneric(MacroAssembler* masm); 290 void GenerateGeneric(MacroAssembler* masm);
291 void GenerateOptimisticSmiOperation(MacroAssembler* masm); 291 void GenerateSmiSmiOperation(MacroAssembler* masm);
292 void GenerateVFPOperation(MacroAssembler* masm); 292 void GenerateFPOperation(MacroAssembler* masm,
293 bool smi_operands,
294 Label* not_numbers,
295 Label* gc_required);
293 void GenerateSmiCode(MacroAssembler* masm, 296 void GenerateSmiCode(MacroAssembler* masm,
294 Label* gc_required, 297 Label* gc_required,
295 SmiCodeGenerateHeapNumberResults heapnumber_results); 298 SmiCodeGenerateHeapNumberResults heapnumber_results);
296 void GenerateLoadArguments(MacroAssembler* masm); 299 void GenerateLoadArguments(MacroAssembler* masm);
297 void GenerateReturn(MacroAssembler* masm); 300 void GenerateReturn(MacroAssembler* masm);
298 void GenerateUninitializedStub(MacroAssembler* masm); 301 void GenerateUninitializedStub(MacroAssembler* masm);
299 void GenerateSmiStub(MacroAssembler* masm); 302 void GenerateSmiStub(MacroAssembler* masm);
300 void GenerateInt32Stub(MacroAssembler* masm); 303 void GenerateInt32Stub(MacroAssembler* masm);
301 void GenerateHeapNumberStub(MacroAssembler* masm); 304 void GenerateHeapNumberStub(MacroAssembler* masm);
302 void GenerateStringStub(MacroAssembler* masm); 305 void GenerateStringStub(MacroAssembler* masm);
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 virtual ~RegExpCEntryStub() {} 564 virtual ~RegExpCEntryStub() {}
562 void Generate(MacroAssembler* masm); 565 void Generate(MacroAssembler* masm);
563 566
564 private: 567 private:
565 Major MajorKey() { return RegExpCEntry; } 568 Major MajorKey() { return RegExpCEntry; }
566 int MinorKey() { return 0; } 569 int MinorKey() { return 0; }
567 const char* GetName() { return "RegExpCEntryStub"; } 570 const char* GetName() { return "RegExpCEntryStub"; }
568 }; 571 };
569 572
570 573
574 // Trampoline stub to call into native code. To call safely into native code
575 // in the presence of compacting GC (which can move code objects) we need to
576 // keep the code which called into native pinned in the memory. Currently the
577 // simplest approach is to generate such stub early enough so it can never be
578 // moved by GC
579 class DirectCEntryStub: public CodeStub {
580 public:
581 DirectCEntryStub() {}
582 void Generate(MacroAssembler* masm);
583 void GenerateCall(MacroAssembler* masm, ApiFunction *function);
584
585 private:
586 Major MajorKey() { return DirectCEntry; }
587 int MinorKey() { return 0; }
588 const char* GetName() { return "DirectCEntryStub"; }
589 };
590
591
592 // Generate code the to load an element from a pixel array. The receiver is
593 // assumed to not be a smi and to have elements, the caller must guarantee this
594 // precondition. If the receiver does not have elements that are pixel arrays,
595 // the generated code jumps to not_pixel_array. If key is not a smi, then the
596 // generated code branches to key_not_smi. Callers can specify NULL for
597 // key_not_smi to signal that a smi check has already been performed on key so
598 // that the smi check is not generated . If key is not a valid index within the
599 // bounds of the pixel array, the generated code jumps to out_of_range.
600 void GenerateFastPixelArrayLoad(MacroAssembler* masm,
601 Register receiver,
602 Register key,
603 Register elements_map,
604 Register elements,
605 Register scratch1,
606 Register scratch2,
607 Register result,
608 Label* not_pixel_array,
609 Label* key_not_smi,
610 Label* out_of_range);
611
612
571 } } // namespace v8::internal 613 } } // namespace v8::internal
572 614
573 #endif // V8_ARM_CODE_STUBS_ARM_H_ 615 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698