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

Side by Side Diff: src/factory.cc

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tests and lint. Created 9 years, 9 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/debug.cc ('k') | src/frames.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 Handle<JSObject> Factory::NewArgumentsObject(Handle<Object> callee, 986 Handle<JSObject> Factory::NewArgumentsObject(Handle<Object> callee,
987 int length) { 987 int length) {
988 CALL_HEAP_FUNCTION( 988 CALL_HEAP_FUNCTION(
989 isolate(), 989 isolate(),
990 isolate()->heap()->AllocateArgumentsObject(*callee, length), JSObject); 990 isolate()->heap()->AllocateArgumentsObject(*callee, length), JSObject);
991 } 991 }
992 992
993 993
994 Handle<JSFunction> Factory::CreateApiFunction( 994 Handle<JSFunction> Factory::CreateApiFunction(
995 Handle<FunctionTemplateInfo> obj, ApiInstanceType instance_type) { 995 Handle<FunctionTemplateInfo> obj, ApiInstanceType instance_type) {
996 Handle<Code> code = Handle<Code>(isolate()->builtins()->builtin( 996 Handle<Code> code = isolate()->builtins()->HandleApiCall();
997 Builtins::HandleApiCall)); 997 Handle<Code> construct_stub = isolate()->builtins()->JSConstructStubApi();
998 Handle<Code> construct_stub =
999 Handle<Code>(isolate()->builtins()->builtin(
1000 Builtins::JSConstructStubApi));
1001 998
1002 int internal_field_count = 0; 999 int internal_field_count = 0;
1003 if (!obj->instance_template()->IsUndefined()) { 1000 if (!obj->instance_template()->IsUndefined()) {
1004 Handle<ObjectTemplateInfo> instance_template = 1001 Handle<ObjectTemplateInfo> instance_template =
1005 Handle<ObjectTemplateInfo>( 1002 Handle<ObjectTemplateInfo>(
1006 ObjectTemplateInfo::cast(obj->instance_template())); 1003 ObjectTemplateInfo::cast(obj->instance_template()));
1007 internal_field_count = 1004 internal_field_count =
1008 Smi::cast(instance_template->internal_field_count())->value(); 1005 Smi::cast(instance_template->internal_field_count())->value();
1009 } 1006 }
1010 1007
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 Execution::ConfigureInstance(instance, 1185 Execution::ConfigureInstance(instance,
1189 instance_template, 1186 instance_template,
1190 pending_exception); 1187 pending_exception);
1191 } else { 1188 } else {
1192 *pending_exception = false; 1189 *pending_exception = false;
1193 } 1190 }
1194 } 1191 }
1195 1192
1196 1193
1197 } } // namespace v8::internal 1194 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698