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

Side by Side Diff: src/heap.cc

Issue 22903012: js accessor creation on Template (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: grokdump Created 7 years, 3 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/apinatives.js ('k') | 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 2411 matching lines...) Expand 10 before | Expand all | Expand 10 after
2422 } 2422 }
2423 2423
2424 2424
2425 MaybeObject* Heap::AllocateAccessorPair() { 2425 MaybeObject* Heap::AllocateAccessorPair() {
2426 AccessorPair* accessors; 2426 AccessorPair* accessors;
2427 { MaybeObject* maybe_accessors = AllocateStruct(ACCESSOR_PAIR_TYPE); 2427 { MaybeObject* maybe_accessors = AllocateStruct(ACCESSOR_PAIR_TYPE);
2428 if (!maybe_accessors->To(&accessors)) return maybe_accessors; 2428 if (!maybe_accessors->To(&accessors)) return maybe_accessors;
2429 } 2429 }
2430 accessors->set_getter(the_hole_value(), SKIP_WRITE_BARRIER); 2430 accessors->set_getter(the_hole_value(), SKIP_WRITE_BARRIER);
2431 accessors->set_setter(the_hole_value(), SKIP_WRITE_BARRIER); 2431 accessors->set_setter(the_hole_value(), SKIP_WRITE_BARRIER);
2432 accessors->set_access_flags(Smi::FromInt(0), SKIP_WRITE_BARRIER);
2432 return accessors; 2433 return accessors;
2433 } 2434 }
2434 2435
2435 2436
2436 MaybeObject* Heap::AllocateTypeFeedbackInfo() { 2437 MaybeObject* Heap::AllocateTypeFeedbackInfo() {
2437 TypeFeedbackInfo* info; 2438 TypeFeedbackInfo* info;
2438 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); 2439 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE);
2439 if (!maybe_info->To(&info)) return maybe_info; 2440 if (!maybe_info->To(&info)) return maybe_info;
2440 } 2441 }
2441 info->initialize_storage(); 2442 info->initialize_storage();
(...skipping 5608 matching lines...) Expand 10 before | Expand all | Expand 10 after
8050 if (FLAG_concurrent_recompilation) { 8051 if (FLAG_concurrent_recompilation) {
8051 heap_->relocation_mutex_->Lock(); 8052 heap_->relocation_mutex_->Lock();
8052 #ifdef DEBUG 8053 #ifdef DEBUG
8053 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8054 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8054 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8055 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8055 #endif // DEBUG 8056 #endif // DEBUG
8056 } 8057 }
8057 } 8058 }
8058 8059
8059 } } // namespace v8::internal 8060 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/apinatives.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698