| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 #include "snapshot.h" | 41 #include "snapshot.h" |
| 42 #include "top.h" | 42 #include "top.h" |
| 43 #include "utils.h" | 43 #include "utils.h" |
| 44 #include "v8threads.h" | 44 #include "v8threads.h" |
| 45 #include "version.h" | 45 #include "version.h" |
| 46 | 46 |
| 47 #include "../include/v8-profiler.h" | 47 #include "../include/v8-profiler.h" |
| 48 | 48 |
| 49 #define LOG_API(expr) LOG(ApiEntryCall(expr)) | 49 #define LOG_API(expr) LOG(ApiEntryCall(expr)) |
| 50 | 50 |
| 51 #ifdef ENABLE_HEAP_PROTECTION | 51 #ifdef ENABLE_VMSTATE_TRACKING |
| 52 #define ENTER_V8 i::VMState __state__(i::OTHER) | 52 #define ENTER_V8 i::VMState __state__(i::OTHER) |
| 53 #define LEAVE_V8 i::VMState __state__(i::EXTERNAL) | 53 #define LEAVE_V8 i::VMState __state__(i::EXTERNAL) |
| 54 #else | 54 #else |
| 55 #define ENTER_V8 ((void) 0) | 55 #define ENTER_V8 ((void) 0) |
| 56 #define LEAVE_V8 ((void) 0) | 56 #define LEAVE_V8 ((void) 0) |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 namespace v8 { | 59 namespace v8 { |
| 60 | 60 |
| 61 | 61 |
| (...skipping 4332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4394 | 4394 |
| 4395 | 4395 |
| 4396 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4396 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 4397 HandleScopeImplementer* thread_local = | 4397 HandleScopeImplementer* thread_local = |
| 4398 reinterpret_cast<HandleScopeImplementer*>(storage); | 4398 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 4399 thread_local->IterateThis(v); | 4399 thread_local->IterateThis(v); |
| 4400 return storage + ArchiveSpacePerThread(); | 4400 return storage + ArchiveSpacePerThread(); |
| 4401 } | 4401 } |
| 4402 | 4402 |
| 4403 } } // namespace v8::internal | 4403 } } // namespace v8::internal |
| OLD | NEW |