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

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

Issue 6101001: Don't let JSON parsed objects hit inherited setters. (Closed)
Patch Set: Address review comments. 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
« no previous file with comments | « no previous file | src/objects.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 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \ 514 #define CALL_HEAP_FUNCTION(FUNCTION_CALL, TYPE) \
515 CALL_AND_RETRY(FUNCTION_CALL, \ 515 CALL_AND_RETRY(FUNCTION_CALL, \
516 return Handle<TYPE>(TYPE::cast(__object__)), \ 516 return Handle<TYPE>(TYPE::cast(__object__)), \
517 return Handle<TYPE>()) 517 return Handle<TYPE>())
518 518
519 519
520 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \ 520 #define CALL_HEAP_FUNCTION_VOID(FUNCTION_CALL) \
521 CALL_AND_RETRY(FUNCTION_CALL, return, return) 521 CALL_AND_RETRY(FUNCTION_CALL, return, return)
522 522
523 523
524 #define CALL_HEAP_FUNCTION_INLINE(FUNCTION_CALL) \
525 CALL_AND_RETRY(FUNCTION_CALL, break, break)
526
527
524 #ifdef DEBUG 528 #ifdef DEBUG
525 529
526 inline bool Heap::allow_allocation(bool new_state) { 530 inline bool Heap::allow_allocation(bool new_state) {
527 bool old = allocation_allowed_; 531 bool old = allocation_allowed_;
528 allocation_allowed_ = new_state; 532 allocation_allowed_ = new_state;
529 return old; 533 return old;
530 } 534 }
531 535
532 #endif 536 #endif
533 537
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 582
579 583
580 void ExternalStringTable::ShrinkNewStrings(int position) { 584 void ExternalStringTable::ShrinkNewStrings(int position) {
581 new_space_strings_.Rewind(position); 585 new_space_strings_.Rewind(position);
582 Verify(); 586 Verify();
583 } 587 }
584 588
585 } } // namespace v8::internal 589 } } // namespace v8::internal
586 590
587 #endif // V8_HEAP_INL_H_ 591 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698