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

Side by Side Diff: src/factory.cc

Issue 879693004: Remove IC age from Code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove tests Created 5 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
« no previous file with comments | « no previous file | src/heap/heap.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 1450
1451 Handle<Code> code = NewCodeRaw(obj_size, immovable); 1451 Handle<Code> code = NewCodeRaw(obj_size, immovable);
1452 DCHECK(isolate()->code_range() == NULL || 1452 DCHECK(isolate()->code_range() == NULL ||
1453 !isolate()->code_range()->valid() || 1453 !isolate()->code_range()->valid() ||
1454 isolate()->code_range()->contains(code->address())); 1454 isolate()->code_range()->contains(code->address()));
1455 1455
1456 // The code object has not been fully initialized yet. We rely on the 1456 // The code object has not been fully initialized yet. We rely on the
1457 // fact that no allocation will happen from this point on. 1457 // fact that no allocation will happen from this point on.
1458 DisallowHeapAllocation no_gc; 1458 DisallowHeapAllocation no_gc;
1459 code->set_gc_metadata(Smi::FromInt(0)); 1459 code->set_gc_metadata(Smi::FromInt(0));
1460 code->set_ic_age(isolate()->heap()->global_ic_age());
1461 code->set_instruction_size(desc.instr_size); 1460 code->set_instruction_size(desc.instr_size);
1462 code->set_relocation_info(*reloc_info); 1461 code->set_relocation_info(*reloc_info);
1463 code->set_flags(flags); 1462 code->set_flags(flags);
1464 code->set_raw_kind_specific_flags1(0); 1463 code->set_raw_kind_specific_flags1(0);
1465 code->set_raw_kind_specific_flags2(0); 1464 code->set_raw_kind_specific_flags2(0);
1466 code->set_is_crankshafted(crankshafted); 1465 code->set_is_crankshafted(crankshafted);
1467 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1466 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1468 code->set_raw_type_feedback_info(Smi::FromInt(0)); 1467 code->set_raw_type_feedback_info(Smi::FromInt(0));
1469 code->set_next_code_link(*undefined_value()); 1468 code->set_next_code_link(*undefined_value());
1470 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1469 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER);
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
2329 return Handle<Object>::null(); 2328 return Handle<Object>::null();
2330 } 2329 }
2331 2330
2332 2331
2333 Handle<Object> Factory::ToBoolean(bool value) { 2332 Handle<Object> Factory::ToBoolean(bool value) {
2334 return value ? true_value() : false_value(); 2333 return value ? true_value() : false_value();
2335 } 2334 }
2336 2335
2337 2336
2338 } } // namespace v8::internal 2337 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698