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

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
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects-inl.h » ('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 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 10334 matching lines...) Expand 10 before | Expand all | Expand 10 after
10345 10345
10346 private: 10346 private:
10347 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); 10347 DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo);
10348 }; 10348 };
10349 10349
10350 10350
10351 class CallHandlerInfo: public Struct { 10351 class CallHandlerInfo: public Struct {
10352 public: 10352 public:
10353 DECL_ACCESSORS(callback, Object) 10353 DECL_ACCESSORS(callback, Object)
10354 DECL_ACCESSORS(data, Object) 10354 DECL_ACCESSORS(data, Object)
10355 DECL_ACCESSORS(fast_handler, Object)
10355 10356
10356 DECLARE_CAST(CallHandlerInfo) 10357 DECLARE_CAST(CallHandlerInfo)
10357 10358
10358 // Dispatched behavior. 10359 // Dispatched behavior.
10359 DECLARE_PRINTER(CallHandlerInfo) 10360 DECLARE_PRINTER(CallHandlerInfo)
10360 DECLARE_VERIFIER(CallHandlerInfo) 10361 DECLARE_VERIFIER(CallHandlerInfo)
10361 10362
10362 static const int kCallbackOffset = HeapObject::kHeaderSize; 10363 static const int kCallbackOffset = HeapObject::kHeaderSize;
10363 static const int kDataOffset = kCallbackOffset + kPointerSize; 10364 static const int kDataOffset = kCallbackOffset + kPointerSize;
10364 static const int kSize = kDataOffset + kPointerSize; 10365 static const int kFastHandlerOffset = kDataOffset + kPointerSize;
10366 static const int kSize = kFastHandlerOffset + kPointerSize;
10365 10367
10366 private: 10368 private:
10367 DISALLOW_IMPLICIT_CONSTRUCTORS(CallHandlerInfo); 10369 DISALLOW_IMPLICIT_CONSTRUCTORS(CallHandlerInfo);
10368 }; 10370 };
10369 10371
10370 10372
10371 class TemplateInfo: public Struct { 10373 class TemplateInfo: public Struct {
10372 public: 10374 public:
10373 DECL_ACCESSORS(tag, Object) 10375 DECL_ACCESSORS(tag, Object)
10374 inline int number_of_properties() const; 10376 inline int number_of_properties() const;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
10723 } 10725 }
10724 return value; 10726 return value;
10725 } 10727 }
10726 }; 10728 };
10727 10729
10728 10730
10729 } // NOLINT, false-positive due to second-order macros. 10731 } // NOLINT, false-positive due to second-order macros.
10730 } // NOLINT, false-positive due to second-order macros. 10732 } // NOLINT, false-positive due to second-order macros.
10731 10733
10732 #endif // V8_OBJECTS_H_ 10734 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698