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

Side by Side Diff: src/objects.h

Issue 1407313004: Adds the possibility of setting a Code object as the callback of a FunctionTemplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 10313 matching lines...) Expand 10 before | Expand all | Expand 10 after
10324 10324
10325 private: 10325 private:
10326 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); 10326 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo);
10327 }; 10327 };
10328 10328
10329 10329
10330 class CallHandlerInfo: public Struct { 10330 class CallHandlerInfo: public Struct {
10331 public: 10331 public:
10332 DECL_ACCESSORS(callback, Object) 10332 DECL_ACCESSORS(callback, Object)
10333 DECL_ACCESSORS(data, Object) 10333 DECL_ACCESSORS(data, Object)
10334 DECL_ACCESSORS(fast_handler, Object)
10334 10335
10335 DECLARE_CAST(CallHandlerInfo) 10336 DECLARE_CAST(CallHandlerInfo)
10336 10337
10337 // Dispatched behavior. 10338 // Dispatched behavior.
10338 DECLARE_PRINTER(CallHandlerInfo) 10339 DECLARE_PRINTER(CallHandlerInfo)
10339 DECLARE_VERIFIER(CallHandlerInfo) 10340 DECLARE_VERIFIER(CallHandlerInfo)
10340 10341
10341 static const int kCallbackOffset = HeapObject::kHeaderSize; 10342 static const int kCallbackOffset = HeapObject::kHeaderSize;
10342 static const int kDataOffset = kCallbackOffset + kPointerSize; 10343 static const int kDataOffset = kCallbackOffset + kPointerSize;
10343 static const int kSize = kDataOffset + kPointerSize; 10344 static const int kFastHandlerOffset = kDataOffset + kPointerSize;
10345 static const int kSize = kFastHandlerOffset + kPointerSize;
10344 10346
10345 private: 10347 private:
10346 DISALLOW_IMPLICIT_CONSTRUCTORS(CallHandlerInfo); 10348 DISALLOW_IMPLICIT_CONSTRUCTORS(CallHandlerInfo);
10347 }; 10349 };
10348 10350
10349 10351
10350 class TemplateInfo: public Struct { 10352 class TemplateInfo: public Struct {
10351 public: 10353 public:
10352 DECL_ACCESSORS(tag, Object) 10354 DECL_ACCESSORS(tag, Object)
10353 inline int number_of_properties() const; 10355 inline int number_of_properties() const;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
10702 } 10704 }
10703 return value; 10705 return value;
10704 } 10706 }
10705 }; 10707 };
10706 10708
10707 10709
10708 } // NOLINT, false-positive due to second-order macros. 10710 } // NOLINT, false-positive due to second-order macros.
10709 } // NOLINT, false-positive due to second-order macros. 10711 } // NOLINT, false-positive due to second-order macros.
10710 10712
10711 #endif // V8_OBJECTS_H_ 10713 #endif // V8_OBJECTS_H_
OLDNEW
« src/api-natives.cc ('K') | « src/ic/x64/handler-compiler-x64.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698