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

Side by Side Diff: src/handles.cc

Issue 23280004: Handlify Accessors::FunctionSetPrototype method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void FlattenString(Handle<String> string) { 201 void FlattenString(Handle<String> string) {
202 CALL_HEAP_FUNCTION_VOID(string->GetIsolate(), string->TryFlatten()); 202 CALL_HEAP_FUNCTION_VOID(string->GetIsolate(), string->TryFlatten());
203 } 203 }
204 204
205 205
206 Handle<String> FlattenGetString(Handle<String> string) { 206 Handle<String> FlattenGetString(Handle<String> string) {
207 CALL_HEAP_FUNCTION(string->GetIsolate(), string->TryFlatten(), String); 207 CALL_HEAP_FUNCTION(string->GetIsolate(), string->TryFlatten(), String);
208 } 208 }
209 209
210 210
211 Handle<Object> SetPrototype(Handle<JSFunction> function,
212 Handle<Object> prototype) {
213 ASSERT(function->should_have_prototype());
214 CALL_HEAP_FUNCTION(function->GetIsolate(),
215 Accessors::FunctionSetPrototype(*function,
216 *prototype,
217 NULL),
218 Object);
219 }
220
221
222 Handle<Object> SetProperty(Isolate* isolate, 211 Handle<Object> SetProperty(Isolate* isolate,
223 Handle<Object> object, 212 Handle<Object> object,
224 Handle<Object> key, 213 Handle<Object> key,
225 Handle<Object> value, 214 Handle<Object> value,
226 PropertyAttributes attributes, 215 PropertyAttributes attributes,
227 StrictModeFlag strict_mode) { 216 StrictModeFlag strict_mode) {
228 CALL_HEAP_FUNCTION( 217 CALL_HEAP_FUNCTION(
229 isolate, 218 isolate,
230 Runtime::SetObjectProperty( 219 Runtime::SetObjectProperty(
231 isolate, object, key, value, attributes, strict_mode), 220 isolate, object, key, value, attributes, strict_mode),
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 data->next = prev_next_; 898 data->next = prev_next_;
910 data->limit = prev_limit_; 899 data->limit = prev_limit_;
911 #ifdef DEBUG 900 #ifdef DEBUG
912 handles_detached_ = true; 901 handles_detached_ = true;
913 #endif 902 #endif
914 return deferred; 903 return deferred;
915 } 904 }
916 905
917 906
918 } } // namespace v8::internal 907 } } // 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