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

Side by Side Diff: src/heap.cc

Issue 10837165: Lattice-based representation inference, powered by left/right specific type feedback for BinaryOps … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: HConstants, HSimulates, stub fixes Created 8 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
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 3685 matching lines...) Expand 10 before | Expand all | Expand 10 after
3696 Code* code = Code::cast(result); 3696 Code* code = Code::cast(result);
3697 ASSERT(!isolate_->code_range()->exists() || 3697 ASSERT(!isolate_->code_range()->exists() ||
3698 isolate_->code_range()->contains(code->address())); 3698 isolate_->code_range()->contains(code->address()));
3699 code->set_instruction_size(desc.instr_size); 3699 code->set_instruction_size(desc.instr_size);
3700 code->set_relocation_info(reloc_info); 3700 code->set_relocation_info(reloc_info);
3701 code->set_flags(flags); 3701 code->set_flags(flags);
3702 if (code->is_call_stub() || code->is_keyed_call_stub()) { 3702 if (code->is_call_stub() || code->is_keyed_call_stub()) {
3703 code->set_check_type(RECEIVER_MAP_CHECK); 3703 code->set_check_type(RECEIVER_MAP_CHECK);
3704 } 3704 }
3705 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); 3705 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER);
3706 code->set_type_feedback_info(undefined_value(), SKIP_WRITE_BARRIER); 3706 code->InitializeTypeFeedbackInfoNoWriteBarrier(undefined_value());
3707 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); 3707 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER);
3708 code->set_gc_metadata(Smi::FromInt(0)); 3708 code->set_gc_metadata(Smi::FromInt(0));
3709 code->set_ic_age(global_ic_age_); 3709 code->set_ic_age(global_ic_age_);
3710 // Allow self references to created code object by patching the handle to 3710 // Allow self references to created code object by patching the handle to
3711 // point to the newly allocated Code object. 3711 // point to the newly allocated Code object.
3712 if (!self_reference.is_null()) { 3712 if (!self_reference.is_null()) {
3713 *(self_reference.location()) = code; 3713 *(self_reference.location()) = code;
3714 } 3714 }
3715 // Migrate generated code. 3715 // Migrate generated code.
3716 // The generated code can contain Object** values (typically from handles) 3716 // The generated code can contain Object** values (typically from handles)
(...skipping 3700 matching lines...) Expand 10 before | Expand all | Expand 10 after
7417 static_cast<int>(object_sizes_last_time_[index])); 7417 static_cast<int>(object_sizes_last_time_[index]));
7418 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) 7418 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT)
7419 #undef ADJUST_LAST_TIME_OBJECT_COUNT 7419 #undef ADJUST_LAST_TIME_OBJECT_COUNT
7420 7420
7421 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 7421 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
7422 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 7422 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
7423 ClearObjectStats(); 7423 ClearObjectStats();
7424 } 7424 }
7425 7425
7426 } } // namespace v8::internal 7426 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698