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

Side by Side Diff: src/runtime.cc

Issue 330793003: Fix clang build after r21839 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | no next file » | 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 // 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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 8231 matching lines...) Expand 10 before | Expand all | Expand 10 after
8242 8242
8243 // Update length. Have to remove the prototype first so that map migration 8243 // Update length. Have to remove the prototype first so that map migration
8244 // is happy about the number of fields. 8244 // is happy about the number of fields.
8245 RUNTIME_ASSERT(bound_function->RemovePrototype()); 8245 RUNTIME_ASSERT(bound_function->RemovePrototype());
8246 Handle<Map> bound_function_map( 8246 Handle<Map> bound_function_map(
8247 isolate->native_context()->bound_function_map()); 8247 isolate->native_context()->bound_function_map());
8248 JSObject::MigrateToMap(bound_function, bound_function_map); 8248 JSObject::MigrateToMap(bound_function, bound_function_map);
8249 Handle<String> length_string = isolate->factory()->length_string(); 8249 Handle<String> length_string = isolate->factory()->length_string();
8250 PropertyAttributes attr = 8250 PropertyAttributes attr =
8251 static_cast<PropertyAttributes>(DONT_DELETE | DONT_ENUM | READ_ONLY); 8251 static_cast<PropertyAttributes>(DONT_DELETE | DONT_ENUM | READ_ONLY);
8252 JSObject::SetOwnPropertyIgnoreAttributes(bound_function, length_string, 8252 RETURN_FAILURE_ON_EXCEPTION(
8253 new_length, attr); 8253 isolate,
8254 JSObject::SetOwnPropertyIgnoreAttributes(bound_function, length_string,
8255 new_length, attr));
8254 return *bound_function; 8256 return *bound_function;
8255 } 8257 }
8256 8258
8257 8259
8258 RUNTIME_FUNCTION(Runtime_BoundFunctionGetBindings) { 8260 RUNTIME_FUNCTION(Runtime_BoundFunctionGetBindings) {
8259 HandleScope handles(isolate); 8261 HandleScope handles(isolate);
8260 ASSERT(args.length() == 1); 8262 ASSERT(args.length() == 1);
8261 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, callable, 0); 8263 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, callable, 0);
8262 if (callable->IsJSFunction()) { 8264 if (callable->IsJSFunction()) {
8263 Handle<JSFunction> function = Handle<JSFunction>::cast(callable); 8265 Handle<JSFunction> function = Handle<JSFunction>::cast(callable);
(...skipping 6945 matching lines...) Expand 10 before | Expand all | Expand 10 after
15209 } 15211 }
15210 return NULL; 15212 return NULL;
15211 } 15213 }
15212 15214
15213 15215
15214 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15216 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15215 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15217 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15216 } 15218 }
15217 15219
15218 } } // namespace v8::internal 15220 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698