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

Side by Side Diff: src/handles.cc

Issue 8050013: Move logic for hidden properties into the JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix typo. Created 9 years, 2 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 | « src/handles.h ('k') | src/objects.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 CALL_HEAP_FUNCTION(obj->GetIsolate(), 414 CALL_HEAP_FUNCTION(obj->GetIsolate(),
415 obj->SetPrototype(*value, skip_hidden_prototypes), Object); 415 obj->SetPrototype(*value, skip_hidden_prototypes), Object);
416 } 416 }
417 417
418 418
419 Handle<Object> PreventExtensions(Handle<JSObject> object) { 419 Handle<Object> PreventExtensions(Handle<JSObject> object) {
420 CALL_HEAP_FUNCTION(object->GetIsolate(), object->PreventExtensions(), Object); 420 CALL_HEAP_FUNCTION(object->GetIsolate(), object->PreventExtensions(), Object);
421 } 421 }
422 422
423 423
424 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, CreationFlag flag) { 424 Handle<Object> SetHiddenProperty(Handle<JSObject> obj,
425 Handle<String> key,
426 Handle<Object> value) {
425 CALL_HEAP_FUNCTION(obj->GetIsolate(), 427 CALL_HEAP_FUNCTION(obj->GetIsolate(),
426 obj->GetHiddenProperties(flag), 428 obj->SetHiddenProperty(*key, *value),
427 Object); 429 Object);
428 } 430 }
429 431
430 432
431 int GetIdentityHash(Handle<JSReceiver> obj) { 433 int GetIdentityHash(Handle<JSReceiver> obj) {
432 CALL_AND_RETRY(obj->GetIsolate(), 434 CALL_AND_RETRY(obj->GetIsolate(),
433 obj->GetIdentityHash(ALLOW_CREATION), 435 obj->GetIdentityHash(ALLOW_CREATION),
434 return Smi::cast(__object__)->value(), 436 return Smi::cast(__object__)->value(),
435 return 0); 437 return 0);
436 } 438 }
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 StringLock::StringLock(Handle<String> string) : string_(string) { 954 StringLock::StringLock(Handle<String> string) : string_(string) {
953 LockString(string); 955 LockString(string);
954 } 956 }
955 957
956 958
957 StringLock::~StringLock() { 959 StringLock::~StringLock() {
958 string_->GetHeap()->UnlockString(*string_); 960 string_->GetHeap()->UnlockString(*string_);
959 } 961 }
960 962
961 } } // namespace v8::internal 963 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698