| OLD | NEW | 
|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 429  public: | 429  public: | 
| 430   ApiGetterEntryStub(Handle<AccessorInfo> info, | 430   ApiGetterEntryStub(Handle<AccessorInfo> info, | 
| 431                      ApiFunction* fun) | 431                      ApiFunction* fun) | 
| 432       : info_(info), | 432       : info_(info), | 
| 433         fun_(fun) { } | 433         fun_(fun) { } | 
| 434   void Generate(MacroAssembler* masm); | 434   void Generate(MacroAssembler* masm); | 
| 435   virtual bool has_custom_cache() { return true; } | 435   virtual bool has_custom_cache() { return true; } | 
| 436   virtual bool GetCustomCache(Code** code_out); | 436   virtual bool GetCustomCache(Code** code_out); | 
| 437   virtual void SetCustomCache(Code* value); | 437   virtual void SetCustomCache(Code* value); | 
| 438 | 438 | 
| 439   static const int kStackSpace = 6; | 439   static const int kStackSpace = 5; | 
| 440   static const int kArgc = 4; | 440   static const int kArgc = 4; | 
| 441  private: | 441  private: | 
| 442   Handle<AccessorInfo> info() { return info_; } | 442   Handle<AccessorInfo> info() { return info_; } | 
| 443   ApiFunction* fun() { return fun_; } | 443   ApiFunction* fun() { return fun_; } | 
| 444   Major MajorKey() { return NoCache; } | 444   Major MajorKey() { return NoCache; } | 
| 445   int MinorKey() { return 0; } | 445   int MinorKey() { return 0; } | 
| 446   const char* GetName() { return "ApiEntryStub"; } | 446   const char* GetName() { return "ApiEntryStub"; } | 
| 447   // The accessor info associated with the function. | 447   // The accessor info associated with the function. | 
| 448   Handle<AccessorInfo> info_; | 448   Handle<AccessorInfo> info_; | 
| 449   // The function to be called. | 449   // The function to be called. | 
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 587  private: | 587  private: | 
| 588   Major MajorKey() { return ToBoolean; } | 588   Major MajorKey() { return ToBoolean; } | 
| 589   int MinorKey() { return 0; } | 589   int MinorKey() { return 0; } | 
| 590 }; | 590 }; | 
| 591 | 591 | 
| 592 | 592 | 
| 593 }  // namespace internal | 593 }  // namespace internal | 
| 594 }  // namespace v8 | 594 }  // namespace v8 | 
| 595 | 595 | 
| 596 #endif  // V8_CODEGEN_H_ | 596 #endif  // V8_CODEGEN_H_ | 
| OLD | NEW | 
|---|