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

Side by Side Diff: src/deoptimizer.cc

Issue 143003013: Initial patch for a64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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/compiler.cc ('k') | src/execution.h » ('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 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 FrameDescription::FrameDescription(uint32_t frame_size, 2395 FrameDescription::FrameDescription(uint32_t frame_size,
2396 JSFunction* function) 2396 JSFunction* function)
2397 : frame_size_(frame_size), 2397 : frame_size_(frame_size),
2398 function_(function), 2398 function_(function),
2399 top_(kZapUint32), 2399 top_(kZapUint32),
2400 pc_(kZapUint32), 2400 pc_(kZapUint32),
2401 fp_(kZapUint32), 2401 fp_(kZapUint32),
2402 context_(kZapUint32) { 2402 context_(kZapUint32) {
2403 // Zap all the registers. 2403 // Zap all the registers.
2404 for (int r = 0; r < Register::kNumRegisters; r++) { 2404 for (int r = 0; r < Register::kNumRegisters; r++) {
2405 // TODO(jbramley): It isn't safe to use kZapUint32 here. If the register
2406 // isn't used before the next safepoint, the GC will try to scan it as a
2407 // tagged value. kZapUint32 looks like a valid tagged pointer, but it isn't.
2405 SetRegister(r, kZapUint32); 2408 SetRegister(r, kZapUint32);
2406 } 2409 }
2407 2410
2408 // Zap all the slots. 2411 // Zap all the slots.
2409 for (unsigned o = 0; o < frame_size; o += kPointerSize) { 2412 for (unsigned o = 0; o < frame_size; o += kPointerSize) {
2410 SetFrameSlot(o, kZapUint32); 2413 SetFrameSlot(o, kZapUint32);
2411 } 2414 }
2412 } 2415 }
2413 2416
2414 2417
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2908 2911
2909 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 2912 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
2910 v->VisitPointer(BitCast<Object**>(&function_)); 2913 v->VisitPointer(BitCast<Object**>(&function_));
2911 v->VisitPointers(parameters_, parameters_ + parameters_count_); 2914 v->VisitPointers(parameters_, parameters_ + parameters_count_);
2912 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 2915 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
2913 } 2916 }
2914 2917
2915 #endif // ENABLE_DEBUGGER_SUPPORT 2918 #endif // ENABLE_DEBUGGER_SUPPORT
2916 2919
2917 } } // namespace v8::internal 2920 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/execution.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698