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

Side by Side Diff: src/frames.cc

Issue 1094008: Fix broken build: disable stale assert (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 if (frame()->is_java_script()) return; 299 if (frame()->is_java_script()) return;
300 } 300 }
301 } 301 }
302 #endif 302 #endif
303 303
304 304
305 // ------------------------------------------------------------------------- 305 // -------------------------------------------------------------------------
306 306
307 307
308 void StackHandler::Cook(Code* code) { 308 void StackHandler::Cook(Code* code) {
309 ASSERT(MarkCompactCollector::IsCompacting());
310 ASSERT(code->contains(pc())); 309 ASSERT(code->contains(pc()));
311 set_pc(AddressFrom<Address>(pc() - code->instruction_start())); 310 set_pc(AddressFrom<Address>(pc() - code->instruction_start()));
312 } 311 }
313 312
314 313
315 void StackHandler::Uncook(Code* code) { 314 void StackHandler::Uncook(Code* code) {
316 ASSERT(MarkCompactCollector::HasCompacted());
317 set_pc(code->instruction_start() + OffsetFrom(pc())); 315 set_pc(code->instruction_start() + OffsetFrom(pc()));
318 ASSERT(code->contains(pc())); 316 ASSERT(code->contains(pc()));
319 } 317 }
320 318
321 319
322 // ------------------------------------------------------------------------- 320 // -------------------------------------------------------------------------
323 321
324 322
325 bool StackFrame::HasHandler() const { 323 bool StackFrame::HasHandler() const {
326 StackHandlerIterator it(this, top_handler()); 324 StackHandlerIterator it(this, top_handler());
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 reg_code[i++] = r; 759 reg_code[i++] = r;
762 760
763 ASSERT(i == kNumJSCallerSaved); 761 ASSERT(i == kNumJSCallerSaved);
764 } 762 }
765 ASSERT(0 <= n && n < kNumJSCallerSaved); 763 ASSERT(0 <= n && n < kNumJSCallerSaved);
766 return reg_code[n]; 764 return reg_code[n];
767 } 765 }
768 766
769 767
770 } } // namespace v8::internal 768 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698