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

Side by Side Diff: src/objects.h

Issue 23707007: Handlify JSProxy::Fix (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 3 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
« no previous file with comments | « no previous file | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 9088 matching lines...) Expand 10 before | Expand all | Expand 10 after
9099 bool* done); 9099 bool* done);
9100 9100
9101 MUST_USE_RESULT PropertyAttributes GetPropertyAttributeWithHandler( 9101 MUST_USE_RESULT PropertyAttributes GetPropertyAttributeWithHandler(
9102 JSReceiver* receiver, 9102 JSReceiver* receiver,
9103 Name* name); 9103 Name* name);
9104 MUST_USE_RESULT PropertyAttributes GetElementAttributeWithHandler( 9104 MUST_USE_RESULT PropertyAttributes GetElementAttributeWithHandler(
9105 JSReceiver* receiver, 9105 JSReceiver* receiver,
9106 uint32_t index); 9106 uint32_t index);
9107 9107
9108 MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag); 9108 MUST_USE_RESULT MaybeObject* GetIdentityHash(CreationFlag flag);
9109 static Handle<Object> GetIdentityHash(Handle<JSProxy> proxy,
9110 CreationFlag flag);
9109 9111
9110 // Turn this into an (empty) JSObject. 9112 // Turn this into an (empty) JSObject.
9111 void Fix(); 9113 static void Fix(Handle<JSProxy> proxy);
9112 9114
9113 // Initializes the body after the handler slot. 9115 // Initializes the body after the handler slot.
9114 inline void InitializeBody(int object_size, Object* value); 9116 inline void InitializeBody(int object_size, Object* value);
9115 9117
9116 // Invoke a trap by name. If the trap does not exist on this's handler, 9118 // Invoke a trap by name. If the trap does not exist on this's handler,
9117 // but derived_trap is non-NULL, invoke that instead. May cause GC. 9119 // but derived_trap is non-NULL, invoke that instead. May cause GC.
9118 Handle<Object> CallTrap(const char* name, 9120 Handle<Object> CallTrap(const char* name,
9119 Handle<Object> derived_trap, 9121 Handle<Object> derived_trap,
9120 int argc, 9122 int argc,
9121 Handle<Object> args[]); 9123 Handle<Object> args[]);
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
10232 } else { 10234 } else {
10233 value &= ~(1 << bit_position); 10235 value &= ~(1 << bit_position);
10234 } 10236 }
10235 return value; 10237 return value;
10236 } 10238 }
10237 }; 10239 };
10238 10240
10239 } } // namespace v8::internal 10241 } } // namespace v8::internal
10240 10242
10241 #endif // V8_OBJECTS_H_ 10243 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698