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

Side by Side Diff: src/heap.cc

Issue 9221011: Collect AstNode type information (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback (embedded AstProperties and AstConstructionVisitor) Created 8 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
« src/ast.h ('K') | « src/compiler.cc ('k') | src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after
2840 Code* construct_stub = 2840 Code* construct_stub =
2841 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 2841 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
2842 share->set_construct_stub(construct_stub); 2842 share->set_construct_stub(construct_stub);
2843 share->set_instance_class_name(Object_symbol()); 2843 share->set_instance_class_name(Object_symbol());
2844 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 2844 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
2845 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 2845 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
2846 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 2846 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
2847 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 2847 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
2848 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 2848 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
2849 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); 2849 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER);
2850 share->set_deopt_counter(Smi::FromInt(FLAG_deopt_every_n_times)); 2850 share->set_deopt_counter(FLAG_deopt_every_n_times);
2851 share->set_ast_node_count(0);
2851 2852
2852 // Set integer fields (smi or int, depending on the architecture). 2853 // Set integer fields (smi or int, depending on the architecture).
2853 share->set_length(0); 2854 share->set_length(0);
2854 share->set_formal_parameter_count(0); 2855 share->set_formal_parameter_count(0);
2855 share->set_expected_nof_properties(0); 2856 share->set_expected_nof_properties(0);
2856 share->set_num_literals(0); 2857 share->set_num_literals(0);
2857 share->set_start_position_and_type(0); 2858 share->set_start_position_and_type(0);
2858 share->set_end_position(0); 2859 share->set_end_position(0);
2859 share->set_function_token_position(0); 2860 share->set_function_token_position(0);
2860 // All compiler hints default to false or 0. 2861 // All compiler hints default to false or 0.
(...skipping 3977 matching lines...) Expand 10 before | Expand all | Expand 10 after
6838 isolate_->heap()->store_buffer()->Compact(); 6839 isolate_->heap()->store_buffer()->Compact();
6839 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6840 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6840 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6841 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6841 next = chunk->next_chunk(); 6842 next = chunk->next_chunk();
6842 isolate_->memory_allocator()->Free(chunk); 6843 isolate_->memory_allocator()->Free(chunk);
6843 } 6844 }
6844 chunks_queued_for_free_ = NULL; 6845 chunks_queued_for_free_ = NULL;
6845 } 6846 }
6846 6847
6847 } } // namespace v8::internal 6848 } } // namespace v8::internal
OLDNEW
« src/ast.h ('K') | « src/compiler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698