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

Side by Side Diff: src/execution.cc

Issue 264047: X64: Fix bugs affecting Win64. (Closed)
Patch Set: Addressed review comments Created 11 years, 2 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 | « src/execution.h ('k') | src/platform-win32.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 postpone_interrupts_nesting_ = 0; 379 postpone_interrupts_nesting_ = 0;
380 interrupt_flags_ = 0; 380 interrupt_flags_ = 0;
381 Heap::SetStackLimit(kIllegalLimit); 381 Heap::SetStackLimit(kIllegalLimit);
382 } 382 }
383 383
384 384
385 void StackGuard::ThreadLocal::Initialize() { 385 void StackGuard::ThreadLocal::Initialize() {
386 if (initial_climit_ == kIllegalLimit) { 386 if (initial_climit_ == kIllegalLimit) {
387 // Takes the address of the limit variable in order to find out where 387 // Takes the address of the limit variable in order to find out where
388 // the top of stack is right now. 388 // the top of stack is right now.
389 intptr_t limit = reinterpret_cast<intptr_t>(&limit) - kLimitSize; 389 uintptr_t limit = reinterpret_cast<uintptr_t>(&limit) - kLimitSize;
390 ASSERT(reinterpret_cast<uintptr_t>(&limit) > kLimitSize);
390 initial_jslimit_ = SimulatorStack::JsLimitFromCLimit(limit); 391 initial_jslimit_ = SimulatorStack::JsLimitFromCLimit(limit);
391 jslimit_ = SimulatorStack::JsLimitFromCLimit(limit); 392 jslimit_ = SimulatorStack::JsLimitFromCLimit(limit);
392 initial_climit_ = limit; 393 initial_climit_ = limit;
393 climit_ = limit; 394 climit_ = limit;
394 Heap::SetStackLimit(SimulatorStack::JsLimitFromCLimit(limit)); 395 Heap::SetStackLimit(SimulatorStack::JsLimitFromCLimit(limit));
395 } 396 }
396 nesting_ = 0; 397 nesting_ = 0;
397 postpone_interrupts_nesting_ = 0; 398 postpone_interrupts_nesting_ = 0;
398 interrupt_flags_ = 0; 399 interrupt_flags_ = 0;
399 } 400 }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 // All allocation spaces other than NEW_SPACE have the same effect. 693 // All allocation spaces other than NEW_SPACE have the same effect.
693 Heap::CollectAllGarbage(false); 694 Heap::CollectAllGarbage(false);
694 return v8::Undefined(); 695 return v8::Undefined();
695 } 696 }
696 697
697 698
698 static GCExtension kGCExtension; 699 static GCExtension kGCExtension;
699 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension); 700 v8::DeclareExtension kGCExtensionDeclaration(&kGCExtension);
700 701
701 } } // namespace v8::internal 702 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.h ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698