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/objects-inl.h

Issue 6334083: Streamline the code for patching optimized code for lazy deopt. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Rewrite the incorrect comment mentioning absolute calls. Created 9 years, 10 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.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 2492 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 return READ_UINT32_FIELD(this, kStackSlotsOffset); 2503 return READ_UINT32_FIELD(this, kStackSlotsOffset);
2504 } 2504 }
2505 2505
2506 2506
2507 void Code::set_stack_slots(unsigned slots) { 2507 void Code::set_stack_slots(unsigned slots) {
2508 ASSERT(kind() == OPTIMIZED_FUNCTION); 2508 ASSERT(kind() == OPTIMIZED_FUNCTION);
2509 WRITE_UINT32_FIELD(this, kStackSlotsOffset, slots); 2509 WRITE_UINT32_FIELD(this, kStackSlotsOffset, slots);
2510 } 2510 }
2511 2511
2512 2512
2513 unsigned Code::safepoint_table_start() { 2513 unsigned Code::safepoint_table_offset() {
2514 ASSERT(kind() == OPTIMIZED_FUNCTION); 2514 ASSERT(kind() == OPTIMIZED_FUNCTION);
2515 return READ_UINT32_FIELD(this, kSafepointTableStartOffset); 2515 return READ_UINT32_FIELD(this, kSafepointTableOffsetOffset);
2516 } 2516 }
2517 2517
2518 2518
2519 void Code::set_safepoint_table_start(unsigned offset) { 2519 void Code::set_safepoint_table_offset(unsigned offset) {
2520 ASSERT(kind() == OPTIMIZED_FUNCTION); 2520 ASSERT(kind() == OPTIMIZED_FUNCTION);
2521 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize))); 2521 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize)));
2522 WRITE_UINT32_FIELD(this, kSafepointTableStartOffset, offset); 2522 WRITE_UINT32_FIELD(this, kSafepointTableOffsetOffset, offset);
2523 } 2523 }
2524 2524
2525 2525
2526 unsigned Code::stack_check_table_start() { 2526 unsigned Code::stack_check_table_offset() {
2527 ASSERT(kind() == FUNCTION); 2527 ASSERT(kind() == FUNCTION);
2528 return READ_UINT32_FIELD(this, kStackCheckTableStartOffset); 2528 return READ_UINT32_FIELD(this, kStackCheckTableOffsetOffset);
2529 } 2529 }
2530 2530
2531 2531
2532 void Code::set_stack_check_table_start(unsigned offset) { 2532 void Code::set_stack_check_table_offset(unsigned offset) {
2533 ASSERT(kind() == FUNCTION); 2533 ASSERT(kind() == FUNCTION);
2534 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize))); 2534 ASSERT(IsAligned(offset, static_cast<unsigned>(kIntSize)));
2535 WRITE_UINT32_FIELD(this, kStackCheckTableStartOffset, offset); 2535 WRITE_UINT32_FIELD(this, kStackCheckTableOffsetOffset, offset);
2536 } 2536 }
2537 2537
2538 2538
2539 CheckType Code::check_type() { 2539 CheckType Code::check_type() {
2540 ASSERT(is_call_stub() || is_keyed_call_stub()); 2540 ASSERT(is_call_stub() || is_keyed_call_stub());
2541 byte type = READ_BYTE_FIELD(this, kCheckTypeOffset); 2541 byte type = READ_BYTE_FIELD(this, kCheckTypeOffset);
2542 return static_cast<CheckType>(type); 2542 return static_cast<CheckType>(type);
2543 } 2543 }
2544 2544
2545 2545
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
3901 #undef WRITE_INT_FIELD 3901 #undef WRITE_INT_FIELD
3902 #undef READ_SHORT_FIELD 3902 #undef READ_SHORT_FIELD
3903 #undef WRITE_SHORT_FIELD 3903 #undef WRITE_SHORT_FIELD
3904 #undef READ_BYTE_FIELD 3904 #undef READ_BYTE_FIELD
3905 #undef WRITE_BYTE_FIELD 3905 #undef WRITE_BYTE_FIELD
3906 3906
3907 3907
3908 } } // namespace v8::internal 3908 } } // namespace v8::internal
3909 3909
3910 #endif // V8_OBJECTS_INL_H_ 3910 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698