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

Side by Side Diff: src/objects.h

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced Created 10 years, 6 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/mips/macro-assembler-mips.cc ('k') | src/objects.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 // Failure type tag info. 780 // Failure type tag info.
781 const int kFailureTypeTagSize = 2; 781 const int kFailureTypeTagSize = 2;
782 const int kFailureTypeTagMask = (1 << kFailureTypeTagSize) - 1; 782 const int kFailureTypeTagMask = (1 << kFailureTypeTagSize) - 1;
783 783
784 class Failure: public Object { 784 class Failure: public Object {
785 public: 785 public:
786 // RuntimeStubs assumes EXCEPTION = 1 in the compiler-generated code. 786 // RuntimeStubs assumes EXCEPTION = 1 in the compiler-generated code.
787 enum Type { 787 enum Type {
788 RETRY_AFTER_GC = 0, 788 RETRY_AFTER_GC = 0,
789 EXCEPTION = 1, // Returning this marker tells the real exception 789 EXCEPTION = 1, // Returning this marker tells the real exception
790 // is in Top::pending_exception. 790 // is in Isolate::pending_exception.
791 INTERNAL_ERROR = 2, 791 INTERNAL_ERROR = 2,
792 OUT_OF_MEMORY_EXCEPTION = 3 792 OUT_OF_MEMORY_EXCEPTION = 3
793 }; 793 };
794 794
795 inline Type type() const; 795 inline Type type() const;
796 796
797 // Returns the space that needs to be collected for RetryAfterGC failures. 797 // Returns the space that needs to be collected for RetryAfterGC failures.
798 inline AllocationSpace allocation_space() const; 798 inline AllocationSpace allocation_space() const;
799 799
800 // Returns the number of bytes requested (up to the representable maximum) 800 // Returns the number of bytes requested (up to the representable maximum)
(...skipping 4482 matching lines...) Expand 10 before | Expand all | Expand 10 after
5283 } else { 5283 } else {
5284 value &= ~(1 << bit_position); 5284 value &= ~(1 << bit_position);
5285 } 5285 }
5286 return value; 5286 return value;
5287 } 5287 }
5288 }; 5288 };
5289 5289
5290 } } // namespace v8::internal 5290 } } // namespace v8::internal
5291 5291
5292 #endif // V8_OBJECTS_H_ 5292 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698