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

Side by Side Diff: src/arm/virtual-frame-arm.h

Issue 2868112: Fix bug 813, harmless assert triggered by ARM inside o3d. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 4 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 | « 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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 inline void LowerHeight(int count) { 494 inline void LowerHeight(int count) {
495 element_count_ -= count; 495 element_count_ -= count;
496 if (count >= kTOSKnownSmiMapSize) { 496 if (count >= kTOSKnownSmiMapSize) {
497 tos_known_smi_map_ = 0; 497 tos_known_smi_map_ = 0;
498 } else { 498 } else {
499 tos_known_smi_map_ >>= count; 499 tos_known_smi_map_ >>= count;
500 } 500 }
501 } 501 }
502 502
503 inline void RaiseHeight(int count, unsigned known_smi_map = 0) { 503 inline void RaiseHeight(int count, unsigned known_smi_map = 0) {
504 ASSERT(known_smi_map < (1u << count)); 504 ASSERT(count >= 32 || known_smi_map < (1u << count));
505 element_count_ += count; 505 element_count_ += count;
506 if (count >= kTOSKnownSmiMapSize) { 506 if (count >= kTOSKnownSmiMapSize) {
507 tos_known_smi_map_ = known_smi_map; 507 tos_known_smi_map_ = known_smi_map;
508 } else { 508 } else {
509 tos_known_smi_map_ = ((tos_known_smi_map_ << count) | known_smi_map); 509 tos_known_smi_map_ = ((tos_known_smi_map_ << count) | known_smi_map);
510 } 510 }
511 } 511 }
512 512
513 friend class JumpTarget; 513 friend class JumpTarget;
514 }; 514 };
515 515
516 516
517 } } // namespace v8::internal 517 } } // namespace v8::internal
518 518
519 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_ 519 #endif // V8_ARM_VIRTUAL_FRAME_ARM_H_
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