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

Side by Side Diff: src/objects.h

Issue 1609233002: Do not eagerly instantiate accessors' JSFunction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make GCMole happy again. Created 4 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
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/objects.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 10322 matching lines...) Expand 10 before | Expand all | Expand 10 after
10333 DECL_ACCESSORS(setter, Object) 10333 DECL_ACCESSORS(setter, Object)
10334 10334
10335 DECLARE_CAST(AccessorPair) 10335 DECLARE_CAST(AccessorPair)
10336 10336
10337 static Handle<AccessorPair> Copy(Handle<AccessorPair> pair); 10337 static Handle<AccessorPair> Copy(Handle<AccessorPair> pair);
10338 10338
10339 inline Object* get(AccessorComponent component); 10339 inline Object* get(AccessorComponent component);
10340 inline void set(AccessorComponent component, Object* value); 10340 inline void set(AccessorComponent component, Object* value);
10341 10341
10342 // Note: Returns undefined instead in case of a hole. 10342 // Note: Returns undefined instead in case of a hole.
10343 Object* GetComponent(AccessorComponent component); 10343 static Handle<Object> GetComponent(Handle<AccessorPair> accessor_pair,
10344 AccessorComponent component);
10344 10345
10345 // Set both components, skipping arguments which are a JavaScript null. 10346 // Set both components, skipping arguments which are a JavaScript null.
10346 inline void SetComponents(Object* getter, Object* setter); 10347 inline void SetComponents(Object* getter, Object* setter);
10347 10348
10348 inline bool Equals(AccessorPair* pair); 10349 inline bool Equals(AccessorPair* pair);
10349 inline bool Equals(Object* getter_value, Object* setter_value); 10350 inline bool Equals(Object* getter_value, Object* setter_value);
10350 10351
10351 inline bool ContainsAccessor(); 10352 inline bool ContainsAccessor();
10352 10353
10353 // Dispatched behavior. 10354 // Dispatched behavior.
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
10794 } 10795 }
10795 return value; 10796 return value;
10796 } 10797 }
10797 }; 10798 };
10798 10799
10799 10800
10800 } // NOLINT, false-positive due to second-order macros. 10801 } // NOLINT, false-positive due to second-order macros.
10801 } // NOLINT, false-positive due to second-order macros. 10802 } // NOLINT, false-positive due to second-order macros.
10802 10803
10803 #endif // V8_OBJECTS_H_ 10804 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698