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 6368051: A MessageObject is a purely internal object to hold information about (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 9 years, 10 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/heap.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 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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 // allocate extra space for a literals array prefix containing the 748 // allocate extra space for a literals array prefix containing the
749 // context. 749 // context.
750 if (number_of_literals > 0) { 750 if (number_of_literals > 0) {
751 literals_array_size += JSFunction::kLiteralsPrefixSize; 751 literals_array_size += JSFunction::kLiteralsPrefixSize;
752 } 752 }
753 shared->set_num_literals(literals_array_size); 753 shared->set_num_literals(literals_array_size);
754 return shared; 754 return shared;
755 } 755 }
756 756
757 757
758 Handle<JSMessageObject> Factory::NewJSMessageObject(
759 Handle<String> type,
760 Handle<JSArray> arguments,
761 int start_position,
762 int end_position,
763 Handle<Object> script,
764 Handle<Object> stack_trace,
765 Handle<Object> stack_frames) {
766 CALL_HEAP_FUNCTION(Heap::AllocateJSMessageObject(*type,
767 *arguments,
768 start_position,
769 end_position,
770 *script,
771 *stack_trace,
772 *stack_frames),
773 JSMessageObject);
774 }
775
758 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { 776 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) {
759 CALL_HEAP_FUNCTION(Heap::AllocateSharedFunctionInfo(*name), 777 CALL_HEAP_FUNCTION(Heap::AllocateSharedFunctionInfo(*name),
760 SharedFunctionInfo); 778 SharedFunctionInfo);
761 } 779 }
762 780
763 781
764 Handle<String> Factory::NumberToString(Handle<Object> number) { 782 Handle<String> Factory::NumberToString(Handle<Object> number) {
765 CALL_HEAP_FUNCTION(Heap::NumberToString(*number), String); 783 CALL_HEAP_FUNCTION(Heap::NumberToString(*number), String);
766 } 784 }
767 785
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 Execution::ConfigureInstance(instance, 1071 Execution::ConfigureInstance(instance,
1054 instance_template, 1072 instance_template,
1055 pending_exception); 1073 pending_exception);
1056 } else { 1074 } else {
1057 *pending_exception = false; 1075 *pending_exception = false;
1058 } 1076 }
1059 } 1077 }
1060 1078
1061 1079
1062 } } // namespace v8::internal 1080 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698