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

Side by Side Diff: src/factory.cc

Issue 404113003: Use 0 instead of undefined for uninitialized stub key. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | « no previous file | src/objects-debug.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/conversions.h" 8 #include "src/conversions.h"
9 #include "src/isolate-inl.h" 9 #include "src/isolate-inl.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 DisallowHeapAllocation no_gc; 1430 DisallowHeapAllocation no_gc;
1431 code->set_gc_metadata(Smi::FromInt(0)); 1431 code->set_gc_metadata(Smi::FromInt(0));
1432 code->set_ic_age(isolate()->heap()->global_ic_age()); 1432 code->set_ic_age(isolate()->heap()->global_ic_age());
1433 code->set_instruction_size(desc.instr_size); 1433 code->set_instruction_size(desc.instr_size);
1434 code->set_relocation_info(*reloc_info); 1434 code->set_relocation_info(*reloc_info);
1435 code->set_flags(flags); 1435 code->set_flags(flags);
1436 code->set_raw_kind_specific_flags1(0); 1436 code->set_raw_kind_specific_flags1(0);
1437 code->set_raw_kind_specific_flags2(0); 1437 code->set_raw_kind_specific_flags2(0);
1438 code->set_is_crankshafted(crankshafted); 1438 code->set_is_crankshafted(crankshafted);
1439 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1439 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1440 code->set_raw_type_feedback_info(*undefined_value()); 1440 code->set_raw_type_feedback_info(Smi::FromInt(0));
1441 code->set_next_code_link(*undefined_value()); 1441 code->set_next_code_link(*undefined_value());
1442 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1442 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1443 code->set_prologue_offset(prologue_offset); 1443 code->set_prologue_offset(prologue_offset);
1444 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 1444 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
1445 code->set_marked_for_deoptimization(false); 1445 code->set_marked_for_deoptimization(false);
1446 } 1446 }
1447 1447
1448 if (is_debug) { 1448 if (is_debug) {
1449 ASSERT(code->kind() == Code::FUNCTION); 1449 ASSERT(code->kind() == Code::FUNCTION);
1450 code->set_has_debug_break_slots(true); 1450 code->set_has_debug_break_slots(true);
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 return Handle<Object>::null(); 2365 return Handle<Object>::null();
2366 } 2366 }
2367 2367
2368 2368
2369 Handle<Object> Factory::ToBoolean(bool value) { 2369 Handle<Object> Factory::ToBoolean(bool value) {
2370 return value ? true_value() : false_value(); 2370 return value ? true_value() : false_value();
2371 } 2371 }
2372 2372
2373 2373
2374 } } // namespace v8::internal 2374 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698