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

Side by Side Diff: src/runtime.h

Issue 101733002: Fixed global object leak (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ASSERT that Global is not called after detaching the global object Created 7 years 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 F(DateSetValue, 3, 1) \ 271 F(DateSetValue, 3, 1) \
272 \ 272 \
273 /* Numbers */ \ 273 /* Numbers */ \
274 \ 274 \
275 /* Globals */ \ 275 /* Globals */ \
276 F(CompileString, 2, 1) \ 276 F(CompileString, 2, 1) \
277 F(GlobalPrint, 1, 1) \ 277 F(GlobalPrint, 1, 1) \
278 \ 278 \
279 /* Eval */ \ 279 /* Eval */ \
280 F(GlobalReceiver, 1, 1) \ 280 F(GlobalReceiver, 1, 1) \
281 F(IsAttachedGlobal, 1, 1) \
281 F(ResolvePossiblyDirectEval, 5, 2) \ 282 F(ResolvePossiblyDirectEval, 5, 2) \
282 \ 283 \
283 F(SetProperty, -1 /* 4 or 5 */, 1) \ 284 F(SetProperty, -1 /* 4 or 5 */, 1) \
284 F(DefineOrRedefineDataProperty, 4, 1) \ 285 F(DefineOrRedefineDataProperty, 4, 1) \
285 F(DefineOrRedefineAccessorProperty, 5, 1) \ 286 F(DefineOrRedefineAccessorProperty, 5, 1) \
286 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \ 287 F(IgnoreAttributesAndSetProperty, -1 /* 3 or 4 */, 1) \
287 F(GetDataProperty, 2, 1) \ 288 F(GetDataProperty, 2, 1) \
288 \ 289 \
289 /* Arrays */ \ 290 /* Arrays */ \
290 F(RemoveArrayHoles, 2, 1) \ 291 F(RemoveArrayHoles, 2, 1) \
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 867 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
867 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 868 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
868 869
869 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 870 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
870 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 871 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
871 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {}; 872 class DeclareGlobalsLanguageMode: public BitField<LanguageMode, 2, 2> {};
872 873
873 } } // namespace v8::internal 874 } } // namespace v8::internal
874 875
875 #endif // V8_RUNTIME_H_ 876 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | test/cctest/test-object-observe.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698