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

Side by Side Diff: src/runtime.cc

Issue 14296008: Release build fix (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 arrayType = kExternalFloatArray; 806 arrayType = kExternalFloatArray;
807 elementSize = 4; 807 elementSize = 4;
808 break; 808 break;
809 case ARRAY_ID_FLOAT64: 809 case ARRAY_ID_FLOAT64:
810 elementsKind = EXTERNAL_DOUBLE_ELEMENTS; 810 elementsKind = EXTERNAL_DOUBLE_ELEMENTS;
811 arrayType = kExternalDoubleArray; 811 arrayType = kExternalDoubleArray;
812 elementSize = 8; 812 elementSize = 8;
813 break; 813 break;
814 default: 814 default:
815 UNREACHABLE(); 815 UNREACHABLE();
816 return NULL;
816 } 817 }
817 818
818 holder->set_buffer(*buffer); 819 holder->set_buffer(*buffer);
819 holder->set_byte_offset(*byte_offset_object); 820 holder->set_byte_offset(*byte_offset_object);
820 holder->set_byte_length(*byte_length_object); 821 holder->set_byte_length(*byte_length_object);
821 822
822 size_t byte_offset = NumberToSize(isolate, *byte_offset_object); 823 size_t byte_offset = NumberToSize(isolate, *byte_offset_object);
823 size_t byte_length = NumberToSize(isolate, *byte_length_object); 824 size_t byte_length = NumberToSize(isolate, *byte_length_object);
824 ASSERT(byte_length % elementSize == 0); 825 ASSERT(byte_length % elementSize == 0);
825 size_t length = byte_length / elementSize; 826 size_t length = byte_length / elementSize;
(...skipping 12379 matching lines...) Expand 10 before | Expand all | Expand 10 after
13205 // Handle last resort GC and make sure to allow future allocations 13206 // Handle last resort GC and make sure to allow future allocations
13206 // to grow the heap without causing GCs (if possible). 13207 // to grow the heap without causing GCs (if possible).
13207 isolate->counters()->gc_last_resort_from_js()->Increment(); 13208 isolate->counters()->gc_last_resort_from_js()->Increment();
13208 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 13209 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
13209 "Runtime::PerformGC"); 13210 "Runtime::PerformGC");
13210 } 13211 }
13211 } 13212 }
13212 13213
13213 13214
13214 } } // namespace v8::internal 13215 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698