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

Side by Side Diff: src/factory.cc

Issue 434117: Remove usage of JSArray in Script object... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/api.cc ('k') | src/handles.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 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 script->set_source(*source); 181 script->set_source(*source);
182 script->set_name(Heap::undefined_value()); 182 script->set_name(Heap::undefined_value());
183 script->set_id(Heap::last_script_id()); 183 script->set_id(Heap::last_script_id());
184 script->set_line_offset(Smi::FromInt(0)); 184 script->set_line_offset(Smi::FromInt(0));
185 script->set_column_offset(Smi::FromInt(0)); 185 script->set_column_offset(Smi::FromInt(0));
186 script->set_data(Heap::undefined_value()); 186 script->set_data(Heap::undefined_value());
187 script->set_context_data(Heap::undefined_value()); 187 script->set_context_data(Heap::undefined_value());
188 script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); 188 script->set_type(Smi::FromInt(Script::TYPE_NORMAL));
189 script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST)); 189 script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST));
190 script->set_wrapper(*wrapper); 190 script->set_wrapper(*wrapper);
191 script->set_line_ends_fixed_array(Heap::undefined_value()); 191 script->set_line_ends(Heap::undefined_value());
192 script->set_line_ends_js_array(Heap::undefined_value());
193 script->set_eval_from_function(Heap::undefined_value()); 192 script->set_eval_from_function(Heap::undefined_value());
194 script->set_eval_from_instructions_offset(Smi::FromInt(0)); 193 script->set_eval_from_instructions_offset(Smi::FromInt(0));
195 194
196 return script; 195 return script;
197 } 196 }
198 197
199 198
200 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) { 199 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) {
201 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy); 200 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy);
202 } 201 }
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 Execution::ConfigureInstance(instance, 945 Execution::ConfigureInstance(instance,
947 instance_template, 946 instance_template,
948 pending_exception); 947 pending_exception);
949 } else { 948 } else {
950 *pending_exception = false; 949 *pending_exception = false;
951 } 950 }
952 } 951 }
953 952
954 953
955 } } // namespace v8::internal 954 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698