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

Side by Side Diff: src/runtime.cc

Issue 5597007: Fix Win64 compilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix linter Created 10 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
« no previous file with comments | « src/objects.cc ('k') | src/type-info.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 6847 matching lines...) Expand 10 before | Expand all | Expand 10 after
6858 // unoptimized code. 6858 // unoptimized code.
6859 JavaScriptFrameIterator it; 6859 JavaScriptFrameIterator it;
6860 JavaScriptFrame* frame = it.frame(); 6860 JavaScriptFrame* frame = it.frame();
6861 ASSERT(frame->function() == *function); 6861 ASSERT(frame->function() == *function);
6862 ASSERT(frame->code() == *unoptimized); 6862 ASSERT(frame->code() == *unoptimized);
6863 ASSERT(unoptimized->contains(frame->pc())); 6863 ASSERT(unoptimized->contains(frame->pc()));
6864 6864
6865 // Use linear search of the unoptimized code's stack check table to find 6865 // Use linear search of the unoptimized code's stack check table to find
6866 // the AST id matching the PC. 6866 // the AST id matching the PC.
6867 Address start = unoptimized->instruction_start(); 6867 Address start = unoptimized->instruction_start();
6868 unsigned target_pc_offset = frame->pc() - start; 6868 unsigned target_pc_offset = static_cast<unsigned>(frame->pc() - start);
6869 Address table_cursor = start + unoptimized->stack_check_table_start(); 6869 Address table_cursor = start + unoptimized->stack_check_table_start();
6870 uint32_t table_length = Memory::uint32_at(table_cursor); 6870 uint32_t table_length = Memory::uint32_at(table_cursor);
6871 table_cursor += kIntSize; 6871 table_cursor += kIntSize;
6872 for (unsigned i = 0; i < table_length; ++i) { 6872 for (unsigned i = 0; i < table_length; ++i) {
6873 // Table entries are (AST id, pc offset) pairs. 6873 // Table entries are (AST id, pc offset) pairs.
6874 uint32_t pc_offset = Memory::uint32_at(table_cursor + kIntSize); 6874 uint32_t pc_offset = Memory::uint32_at(table_cursor + kIntSize);
6875 if (pc_offset == target_pc_offset) { 6875 if (pc_offset == target_pc_offset) {
6876 ast_id = static_cast<int>(Memory::uint32_at(table_cursor)); 6876 ast_id = static_cast<int>(Memory::uint32_at(table_cursor));
6877 break; 6877 break;
6878 } 6878 }
(...skipping 3905 matching lines...) Expand 10 before | Expand all | Expand 10 after
10784 } else { 10784 } else {
10785 // Handle last resort GC and make sure to allow future allocations 10785 // Handle last resort GC and make sure to allow future allocations
10786 // to grow the heap without causing GCs (if possible). 10786 // to grow the heap without causing GCs (if possible).
10787 Counters::gc_last_resort_from_js.Increment(); 10787 Counters::gc_last_resort_from_js.Increment();
10788 Heap::CollectAllGarbage(false); 10788 Heap::CollectAllGarbage(false);
10789 } 10789 }
10790 } 10790 }
10791 10791
10792 10792
10793 } } // namespace v8::internal 10793 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698