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

Side by Side Diff: src/heap.cc

Issue 52633003: Introduce raw accessors for type_feedback_info. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed default WriteBarrierMode. Created 7 years, 1 month 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 | « no previous file | src/objects.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 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 4176 matching lines...) Expand 10 before | Expand all | Expand 10 after
4187 ASSERT(!isolate_->code_range()->exists() || 4187 ASSERT(!isolate_->code_range()->exists() ||
4188 isolate_->code_range()->contains(code->address())); 4188 isolate_->code_range()->contains(code->address()));
4189 code->set_instruction_size(desc.instr_size); 4189 code->set_instruction_size(desc.instr_size);
4190 code->set_relocation_info(reloc_info); 4190 code->set_relocation_info(reloc_info);
4191 code->set_flags(flags); 4191 code->set_flags(flags);
4192 if (code->is_call_stub() || code->is_keyed_call_stub()) { 4192 if (code->is_call_stub() || code->is_keyed_call_stub()) {
4193 code->set_check_type(RECEIVER_MAP_CHECK); 4193 code->set_check_type(RECEIVER_MAP_CHECK);
4194 } 4194 }
4195 code->set_is_crankshafted(crankshafted); 4195 code->set_is_crankshafted(crankshafted);
4196 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); 4196 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER);
4197 code->InitializeTypeFeedbackInfoNoWriteBarrier(undefined_value()); 4197 code->set_raw_type_feedback_info(undefined_value());
4198 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); 4198 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER);
4199 code->set_gc_metadata(Smi::FromInt(0)); 4199 code->set_gc_metadata(Smi::FromInt(0));
4200 code->set_ic_age(global_ic_age_); 4200 code->set_ic_age(global_ic_age_);
4201 code->set_prologue_offset(prologue_offset); 4201 code->set_prologue_offset(prologue_offset);
4202 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 4202 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
4203 code->set_marked_for_deoptimization(false); 4203 code->set_marked_for_deoptimization(false);
4204 } 4204 }
4205 4205
4206 #ifdef ENABLE_DEBUGGER_SUPPORT 4206 #ifdef ENABLE_DEBUGGER_SUPPORT
4207 if (code->kind() == Code::FUNCTION) { 4207 if (code->kind() == Code::FUNCTION) {
(...skipping 3759 matching lines...) Expand 10 before | Expand all | Expand 10 after
7967 if (FLAG_concurrent_recompilation) { 7967 if (FLAG_concurrent_recompilation) {
7968 heap_->relocation_mutex_->Lock(); 7968 heap_->relocation_mutex_->Lock();
7969 #ifdef DEBUG 7969 #ifdef DEBUG
7970 heap_->relocation_mutex_locked_by_optimizer_thread_ = 7970 heap_->relocation_mutex_locked_by_optimizer_thread_ =
7971 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 7971 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
7972 #endif // DEBUG 7972 #endif // DEBUG
7973 } 7973 }
7974 } 7974 }
7975 7975
7976 } } // namespace v8::internal 7976 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698