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

Side by Side Diff: src/handles.cc

Issue 62333002: Handlify Runtime::SetObjectProperty (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: whitespace Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/handles.h ('k') | src/ic.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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void FlattenString(Handle<String> string) { 153 void FlattenString(Handle<String> string) {
154 CALL_HEAP_FUNCTION_VOID(string->GetIsolate(), string->TryFlatten()); 154 CALL_HEAP_FUNCTION_VOID(string->GetIsolate(), string->TryFlatten());
155 } 155 }
156 156
157 157
158 Handle<String> FlattenGetString(Handle<String> string) { 158 Handle<String> FlattenGetString(Handle<String> string) {
159 CALL_HEAP_FUNCTION(string->GetIsolate(), string->TryFlatten(), String); 159 CALL_HEAP_FUNCTION(string->GetIsolate(), string->TryFlatten(), String);
160 } 160 }
161 161
162 162
163 Handle<Object> SetProperty(Isolate* isolate,
164 Handle<Object> object,
165 Handle<Object> key,
166 Handle<Object> value,
167 PropertyAttributes attributes,
168 StrictModeFlag strict_mode) {
169 CALL_HEAP_FUNCTION(
170 isolate,
171 Runtime::SetObjectProperty(
172 isolate, object, key, value, attributes, strict_mode),
173 Object);
174 }
175
176
177 Handle<Object> ForceSetProperty(Handle<JSObject> object, 163 Handle<Object> ForceSetProperty(Handle<JSObject> object,
178 Handle<Object> key, 164 Handle<Object> key,
179 Handle<Object> value, 165 Handle<Object> value,
180 PropertyAttributes attributes) { 166 PropertyAttributes attributes) {
181 return Runtime::ForceSetObjectProperty(object->GetIsolate(), object, key, 167 return Runtime::ForceSetObjectProperty(object->GetIsolate(), object, key,
182 value, attributes); 168 value, attributes);
183 } 169 }
184 170
185 171
186 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key) { 172 Handle<Object> DeleteProperty(Handle<JSObject> object, Handle<Object> key) {
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 Handle<Code> code) { 795 Handle<Code> code) {
810 heap->EnsureWeakObjectToCodeTable(); 796 heap->EnsureWeakObjectToCodeTable();
811 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object)); 797 Handle<DependentCode> dep(heap->LookupWeakObjectToCodeDependency(*object));
812 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code); 798 dep = DependentCode::Insert(dep, DependentCode::kWeaklyEmbeddedGroup, code);
813 CALL_HEAP_FUNCTION_VOID(heap->isolate(), 799 CALL_HEAP_FUNCTION_VOID(heap->isolate(),
814 heap->AddWeakObjectToCodeDependency(*object, *dep)); 800 heap->AddWeakObjectToCodeDependency(*object, *dep));
815 } 801 }
816 802
817 803
818 } } // namespace v8::internal 804 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698