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/factory.cc

Issue 546068: Fix GC bug... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 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/factory.h ('k') | src/ic.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 711
712 712
713 Handle<JSFunction> Factory::NewFunction(Handle<String> name, 713 Handle<JSFunction> Factory::NewFunction(Handle<String> name,
714 Handle<Object> prototype) { 714 Handle<Object> prototype) {
715 Handle<JSFunction> fun = NewFunctionHelper(name, prototype); 715 Handle<JSFunction> fun = NewFunctionHelper(name, prototype);
716 fun->set_context(Top::context()->global_context()); 716 fun->set_context(Top::context()->global_context());
717 return fun; 717 return fun;
718 } 718 }
719 719
720 720
721 Handle<Object> Factory::ToObject(Handle<Object> object) {
722 CALL_HEAP_FUNCTION(object->ToObject(), Object);
723 }
724
725
721 Handle<Object> Factory::ToObject(Handle<Object> object, 726 Handle<Object> Factory::ToObject(Handle<Object> object,
722 Handle<Context> global_context) { 727 Handle<Context> global_context) {
723 CALL_HEAP_FUNCTION(object->ToObject(*global_context), Object); 728 CALL_HEAP_FUNCTION(object->ToObject(*global_context), Object);
724 } 729 }
725 730
726 731
727 #ifdef ENABLE_DEBUGGER_SUPPORT 732 #ifdef ENABLE_DEBUGGER_SUPPORT
728 Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) { 733 Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
729 // Get the original code of the function. 734 // Get the original code of the function.
730 Handle<Code> code(shared->code()); 735 Handle<Code> code(shared->code());
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 Execution::ConfigureInstance(instance, 956 Execution::ConfigureInstance(instance,
952 instance_template, 957 instance_template,
953 pending_exception); 958 pending_exception);
954 } else { 959 } else {
955 *pending_exception = false; 960 *pending_exception = false;
956 } 961 }
957 } 962 }
958 963
959 964
960 } } // namespace v8::internal 965 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698