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

Side by Side Diff: src/heap.cc

Issue 8417035: Introduce extended mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed more comments. Created 9 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
« no previous file with comments | « src/handles.h ('k') | src/hydrogen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3362 matching lines...) Expand 10 before | Expand all | Expand 10 after
3373 } 3373 }
3374 3374
3375 3375
3376 MaybeObject* Heap::AllocateArgumentsObject(Object* callee, int length) { 3376 MaybeObject* Heap::AllocateArgumentsObject(Object* callee, int length) {
3377 // To get fast allocation and map sharing for arguments objects we 3377 // To get fast allocation and map sharing for arguments objects we
3378 // allocate them based on an arguments boilerplate. 3378 // allocate them based on an arguments boilerplate.
3379 3379
3380 JSObject* boilerplate; 3380 JSObject* boilerplate;
3381 int arguments_object_size; 3381 int arguments_object_size;
3382 bool strict_mode_callee = callee->IsJSFunction() && 3382 bool strict_mode_callee = callee->IsJSFunction() &&
3383 JSFunction::cast(callee)->shared()->strict_mode(); 3383 !JSFunction::cast(callee)->shared()->is_classic_mode();
3384 if (strict_mode_callee) { 3384 if (strict_mode_callee) {
3385 boilerplate = 3385 boilerplate =
3386 isolate()->context()->global_context()-> 3386 isolate()->context()->global_context()->
3387 strict_mode_arguments_boilerplate(); 3387 strict_mode_arguments_boilerplate();
3388 arguments_object_size = kArgumentsObjectSizeStrict; 3388 arguments_object_size = kArgumentsObjectSizeStrict;
3389 } else { 3389 } else {
3390 boilerplate = 3390 boilerplate =
3391 isolate()->context()->global_context()->arguments_boilerplate(); 3391 isolate()->context()->global_context()->arguments_boilerplate();
3392 arguments_object_size = kArgumentsObjectSize; 3392 arguments_object_size = kArgumentsObjectSize;
3393 } 3393 }
(...skipping 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after
6456 isolate_->heap()->store_buffer()->Compact(); 6456 isolate_->heap()->store_buffer()->Compact();
6457 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6457 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6458 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6458 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6459 next = chunk->next_chunk(); 6459 next = chunk->next_chunk();
6460 isolate_->memory_allocator()->Free(chunk); 6460 isolate_->memory_allocator()->Free(chunk);
6461 } 6461 }
6462 chunks_queued_for_free_ = NULL; 6462 chunks_queued_for_free_ = NULL;
6463 } 6463 }
6464 6464
6465 } } // namespace v8::internal 6465 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/handles.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698