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

Side by Side Diff: src/deoptimizer.cc

Issue 19729003: Fix NaCl regression caused by pepper revision 28. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | src/platform-linux.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 25 matching lines...) Expand all
36 #include "macro-assembler.h" 36 #include "macro-assembler.h"
37 #include "prettyprinter.h" 37 #include "prettyprinter.h"
38 38
39 39
40 namespace v8 { 40 namespace v8 {
41 namespace internal { 41 namespace internal {
42 42
43 static MemoryChunk* AllocateCodeChunk(MemoryAllocator* allocator) { 43 static MemoryChunk* AllocateCodeChunk(MemoryAllocator* allocator) {
44 return allocator->AllocateChunk(Deoptimizer::GetMaxDeoptTableSize(), 44 return allocator->AllocateChunk(Deoptimizer::GetMaxDeoptTableSize(),
45 OS::CommitPageSize(), 45 OS::CommitPageSize(),
46 #if defined(__native_client__)
47 // The Native Client port of V8 uses an interpreter,
48 // so code pages don't need PROT_EXEC.
49 NOT_EXECUTABLE,
50 #else
46 EXECUTABLE, 51 EXECUTABLE,
52 #endif
47 NULL); 53 NULL);
48 } 54 }
49 55
50 56
51 DeoptimizerData::DeoptimizerData(MemoryAllocator* allocator) 57 DeoptimizerData::DeoptimizerData(MemoryAllocator* allocator)
52 : allocator_(allocator), 58 : allocator_(allocator),
53 current_(NULL), 59 current_(NULL),
54 #ifdef ENABLE_DEBUGGER_SUPPORT 60 #ifdef ENABLE_DEBUGGER_SUPPORT
55 deoptimized_frame_info_(NULL), 61 deoptimized_frame_info_(NULL),
56 #endif 62 #endif
(...skipping 3035 matching lines...) Expand 10 before | Expand all | Expand 10 after
3092 3098
3093 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 3099 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
3094 v->VisitPointer(BitCast<Object**>(&function_)); 3100 v->VisitPointer(BitCast<Object**>(&function_));
3095 v->VisitPointers(parameters_, parameters_ + parameters_count_); 3101 v->VisitPointers(parameters_, parameters_ + parameters_count_);
3096 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 3102 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
3097 } 3103 }
3098 3104
3099 #endif // ENABLE_DEBUGGER_SUPPORT 3105 #endif // ENABLE_DEBUGGER_SUPPORT
3100 3106
3101 } } // namespace v8::internal 3107 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698