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

Side by Side Diff: src/heap.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/frames.cc ('k') | src/hydrogen-instructions.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 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 2264
2265 MaybeObject* Heap::AllocateSharedFunctionInfo(Object* name) { 2265 MaybeObject* Heap::AllocateSharedFunctionInfo(Object* name) {
2266 Object* result; 2266 Object* result;
2267 { MaybeObject* maybe_result = 2267 { MaybeObject* maybe_result =
2268 Allocate(shared_function_info_map(), OLD_POINTER_SPACE); 2268 Allocate(shared_function_info_map(), OLD_POINTER_SPACE);
2269 if (!maybe_result->ToObject(&result)) return maybe_result; 2269 if (!maybe_result->ToObject(&result)) return maybe_result;
2270 } 2270 }
2271 2271
2272 SharedFunctionInfo* share = SharedFunctionInfo::cast(result); 2272 SharedFunctionInfo* share = SharedFunctionInfo::cast(result);
2273 share->set_name(name); 2273 share->set_name(name);
2274 Code* illegal = isolate_->builtins()->builtin(Builtins::Illegal); 2274 Code* illegal = isolate_->builtins()->builtin(Builtins::kIllegal);
2275 share->set_code(illegal); 2275 share->set_code(illegal);
2276 share->set_scope_info(SerializedScopeInfo::Empty()); 2276 share->set_scope_info(SerializedScopeInfo::Empty());
2277 Code* construct_stub = isolate_->builtins()->builtin( 2277 Code* construct_stub = isolate_->builtins()->builtin(
2278 Builtins::JSConstructStubGeneric); 2278 Builtins::kJSConstructStubGeneric);
2279 share->set_construct_stub(construct_stub); 2279 share->set_construct_stub(construct_stub);
2280 share->set_expected_nof_properties(0); 2280 share->set_expected_nof_properties(0);
2281 share->set_length(0); 2281 share->set_length(0);
2282 share->set_formal_parameter_count(0); 2282 share->set_formal_parameter_count(0);
2283 share->set_instance_class_name(Object_symbol()); 2283 share->set_instance_class_name(Object_symbol());
2284 share->set_function_data(undefined_value()); 2284 share->set_function_data(undefined_value());
2285 share->set_script(undefined_value()); 2285 share->set_script(undefined_value());
2286 share->set_start_position_and_type(0); 2286 share->set_start_position_and_type(0);
2287 share->set_debug_info(undefined_value()); 2287 share->set_debug_info(undefined_value());
2288 share->set_inferred_name(empty_string()); 2288 share->set_inferred_name(empty_string());
(...skipping 3488 matching lines...) Expand 10 before | Expand all | Expand 10 after
5777 } 5777 }
5778 5778
5779 5779
5780 void ExternalStringTable::TearDown() { 5780 void ExternalStringTable::TearDown() {
5781 new_space_strings_.Free(); 5781 new_space_strings_.Free();
5782 old_space_strings_.Free(); 5782 old_space_strings_.Free();
5783 } 5783 }
5784 5784
5785 5785
5786 } } // namespace v8::internal 5786 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698