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

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

Issue 6170001: Direct call api functions (arm implementation) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 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
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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 RegExpCEntryStub() {} 560 RegExpCEntryStub() {}
561 virtual ~RegExpCEntryStub() {} 561 virtual ~RegExpCEntryStub() {}
562 void Generate(MacroAssembler* masm); 562 void Generate(MacroAssembler* masm);
563 563
564 private: 564 private:
565 Major MajorKey() { return RegExpCEntry; } 565 Major MajorKey() { return RegExpCEntry; }
566 int MinorKey() { return 0; } 566 int MinorKey() { return 0; }
567 const char* GetName() { return "RegExpCEntryStub"; } 567 const char* GetName() { return "RegExpCEntryStub"; }
568 }; 568 };
569 569
570 // Trampoline stub to call into native code. To call safely into native code
571 // in the presence of compacting GC (which can move code objects) we need to
572 // keep the code which called into native pinned in the memory. Currently the
573 // simplest approach is to generate such stub early enough so it can never be
574 // moved by GC
575 class DirectCEntryStub: public CodeStub {
576 public:
577 DirectCEntryStub() {}
578 void Generate(MacroAssembler* masm);
579 void GenerateCall(MacroAssembler* masm, ApiFunction *function);
580
581 private:
582 Major MajorKey() { return DirectCEntry; }
583 int MinorKey() { return 0; }
584 const char* GetName() { return "DirectCEntryStub"; }
585 };
586
570 587
571 } } // namespace v8::internal 588 } } // namespace v8::internal
572 589
573 #endif // V8_ARM_CODE_STUBS_ARM_H_ 590 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698