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

Side by Side Diff: src/heap.cc

Issue 16925008: Generate StoreGlobal stubs with Hydrogen (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Finish code dependencies Created 7 years, 6 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 | « src/heap.h ('k') | src/hydrogen.h » ('j') | src/types.cc » ('J')
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 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after
2823 } 2823 }
2824 2824
2825 2825
2826 MaybeObject* Heap::AllocatePropertyCell(Object* value) { 2826 MaybeObject* Heap::AllocatePropertyCell(Object* value) {
2827 Object* result; 2827 Object* result;
2828 { MaybeObject* maybe_result = AllocateRawPropertyCell(); 2828 { MaybeObject* maybe_result = AllocateRawPropertyCell();
2829 if (!maybe_result->ToObject(&result)) return maybe_result; 2829 if (!maybe_result->ToObject(&result)) return maybe_result;
2830 } 2830 }
2831 HeapObject::cast(result)->set_map_no_write_barrier( 2831 HeapObject::cast(result)->set_map_no_write_barrier(
2832 global_property_cell_map()); 2832 global_property_cell_map());
2833 PropertyCell::cast(result)->set_value(value); 2833 PropertyCell* cell = PropertyCell::cast(result);
2834 PropertyCell::cast(result)->set_type(Type::None()); 2834 cell->set_value(value);
2835 Isolate* isolate = cell->GetIsolate();
2836 Handle<Object> value_handle(value, isolate);
2837 PropertyCell::cast(result)->set_type(Type::Constant(value_handle,
2838 isolate));
2839 cell->set_dependent_code(DependentCode::cast(empty_fixed_array()),
2840 SKIP_WRITE_BARRIER);
2835 return result; 2841 return result;
2836 } 2842 }
2837 2843
2838 2844
2839 MaybeObject* Heap::AllocateBox(Object* value, PretenureFlag pretenure) { 2845 MaybeObject* Heap::AllocateBox(Object* value, PretenureFlag pretenure) {
2840 Box* result; 2846 Box* result;
2841 MaybeObject* maybe_result = AllocateStruct(BOX_TYPE); 2847 MaybeObject* maybe_result = AllocateStruct(BOX_TYPE);
2842 if (!maybe_result->To(&result)) return maybe_result; 2848 if (!maybe_result->To(&result)) return maybe_result;
2843 result->set_value(value); 2849 result->set_value(value);
2844 return result; 2850 return result;
(...skipping 5225 matching lines...) Expand 10 before | Expand all | Expand 10 after
8070 if (FLAG_parallel_recompilation) { 8076 if (FLAG_parallel_recompilation) {
8071 heap_->relocation_mutex_->Lock(); 8077 heap_->relocation_mutex_->Lock();
8072 #ifdef DEBUG 8078 #ifdef DEBUG
8073 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8079 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8074 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8080 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8075 #endif // DEBUG 8081 #endif // DEBUG
8076 } 8082 }
8077 } 8083 }
8078 8084
8079 } } // namespace v8::internal 8085 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/hydrogen.h » ('j') | src/types.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698