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

Side by Side Diff: src/objects-inl.h

Issue 6116001: Use a separate marker value to allocate the arguments object on deoptimzation... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 11 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/objects-debug.cc ('k') | src/runtime.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 bool MaybeObject::IsException() { 416 bool MaybeObject::IsException() {
417 return this == Failure::Exception(); 417 return this == Failure::Exception();
418 } 418 }
419 419
420 420
421 bool MaybeObject::IsTheHole() { 421 bool MaybeObject::IsTheHole() {
422 return this == Heap::the_hole_value(); 422 return this == Heap::the_hole_value();
423 } 423 }
424 424
425 425
426 bool MaybeObject::IsArgumentsMarker() {
427 return this == Heap::arguments_marker();
428 }
429
430
426 Failure* Failure::cast(MaybeObject* obj) { 431 Failure* Failure::cast(MaybeObject* obj) {
427 ASSERT(HAS_FAILURE_TAG(obj)); 432 ASSERT(HAS_FAILURE_TAG(obj));
428 return reinterpret_cast<Failure*>(obj); 433 return reinterpret_cast<Failure*>(obj);
429 } 434 }
430 435
431 436
432 bool Object::IsJSObject() { 437 bool Object::IsJSObject() {
433 return IsHeapObject() 438 return IsHeapObject()
434 && HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_OBJECT_TYPE; 439 && HeapObject::cast(this)->map()->instance_type() >= FIRST_JS_OBJECT_TYPE;
435 } 440 }
(...skipping 3409 matching lines...) Expand 10 before | Expand all | Expand 10 after
3845 #undef WRITE_INT_FIELD 3850 #undef WRITE_INT_FIELD
3846 #undef READ_SHORT_FIELD 3851 #undef READ_SHORT_FIELD
3847 #undef WRITE_SHORT_FIELD 3852 #undef WRITE_SHORT_FIELD
3848 #undef READ_BYTE_FIELD 3853 #undef READ_BYTE_FIELD
3849 #undef WRITE_BYTE_FIELD 3854 #undef WRITE_BYTE_FIELD
3850 3855
3851 3856
3852 } } // namespace v8::internal 3857 } } // namespace v8::internal
3853 3858
3854 #endif // V8_OBJECTS_INL_H_ 3859 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698